1 1.1.4.2 bouyer /* $NetBSD: kcore.h,v 1.1.4.2 2008/01/02 21:47:24 bouyer Exp $ */ 2 1.1.4.2 bouyer 3 1.1.4.2 bouyer /* 4 1.1.4.2 bouyer * Copyright (c) 1996 Carnegie-Mellon University. 5 1.1.4.2 bouyer * All rights reserved. 6 1.1.4.2 bouyer * 7 1.1.4.2 bouyer * Author: Chris G. Demetriou 8 1.1.4.2 bouyer * 9 1.1.4.2 bouyer * Permission to use, copy, modify and distribute this software and 10 1.1.4.2 bouyer * its documentation is hereby granted, provided that both the copyright 11 1.1.4.2 bouyer * notice and this permission notice appear in all copies of the 12 1.1.4.2 bouyer * software, derivative works or modified versions, and any portions 13 1.1.4.2 bouyer * thereof, and that both notices appear in supporting documentation. 14 1.1.4.2 bouyer * 15 1.1.4.2 bouyer * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS" 16 1.1.4.2 bouyer * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND 17 1.1.4.2 bouyer * FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE. 18 1.1.4.2 bouyer * 19 1.1.4.2 bouyer * Carnegie Mellon requests users of this software to return to 20 1.1.4.2 bouyer * 21 1.1.4.2 bouyer * Software Distribution Coordinator or Software.Distribution (at) CS.CMU.EDU 22 1.1.4.2 bouyer * School of Computer Science 23 1.1.4.2 bouyer * Carnegie Mellon University 24 1.1.4.2 bouyer * Pittsburgh PA 15213-3890 25 1.1.4.2 bouyer * 26 1.1.4.2 bouyer * any improvements or extensions that they make and grant Carnegie the 27 1.1.4.2 bouyer * rights to redistribute these changes. 28 1.1.4.2 bouyer */ 29 1.1.4.2 bouyer 30 1.1.4.2 bouyer /* 31 1.1.4.2 bouyer * Modified for NetBSD/i386 by Jason R. Thorpe, Numerical Aerospace 32 1.1.4.2 bouyer * Simulation Facility, NASA Ames Research Center. 33 1.1.4.2 bouyer */ 34 1.1.4.2 bouyer 35 1.1.4.2 bouyer #ifndef _ARM_KCORE_H_ 36 1.1.4.2 bouyer #define _ARM_KCORE_H_ 37 1.1.4.2 bouyer 38 1.1.4.2 bouyer typedef struct cpu_kcore_hdr { 39 1.1.4.2 bouyer uint32_t version; /* structure version */ 40 1.1.4.2 bouyer uint32_t flags; /* flags */ 41 1.1.4.2 bouyer #define KCORE_ARM_APX 0x0001 /* L1 tables are in APX 42 1.1.4.2 bouyer format */ 43 1.1.4.2 bouyer uint32_t PAKernelL1Table; /* PA of kernel L1 table */ 44 1.1.4.2 bouyer uint32_t PAUserL1Table; /* PA of userland L1 table */ 45 1.1.4.2 bouyer uint16_t UserL1TableSize; /* size of User L1 table */ 46 1.1.4.2 bouyer uint32_t nmemsegs; /* Number of RAM segments */ 47 1.1.4.2 bouyer uint32_t omemsegs; /* offset to memsegs */ 48 1.1.4.2 bouyer 49 1.1.4.2 bouyer /* 50 1.1.4.2 bouyer * future versions will add fields here. 51 1.1.4.2 bouyer */ 52 1.1.4.2 bouyer #if 0 53 1.1.4.2 bouyer phys_ram_seg_t memsegs[]; /* RAM segments */ 54 1.1.4.2 bouyer #endif 55 1.1.4.2 bouyer } cpu_kcore_hdr_t; 56 1.1.4.2 bouyer 57 1.1.4.2 bouyer #endif /* _ARM_KCORE_H_ */ 58