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