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