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