1*c24c993fSbouyer /* $NetBSD: kcore.h,v 1.7 2020/04/25 15:26:17 bouyer Exp $ */ 2b7d1ce77Sthorpej 3b7d1ce77Sthorpej /* 4b7d1ce77Sthorpej * Copyright (c) 1996 Carnegie-Mellon University. 5b7d1ce77Sthorpej * All rights reserved. 6b7d1ce77Sthorpej * 7b7d1ce77Sthorpej * Author: Chris G. Demetriou 8b7d1ce77Sthorpej * 9b7d1ce77Sthorpej * Permission to use, copy, modify and distribute this software and 10b7d1ce77Sthorpej * its documentation is hereby granted, provided that both the copyright 11b7d1ce77Sthorpej * notice and this permission notice appear in all copies of the 12b7d1ce77Sthorpej * software, derivative works or modified versions, and any portions 13b7d1ce77Sthorpej * thereof, and that both notices appear in supporting documentation. 14b7d1ce77Sthorpej * 15b7d1ce77Sthorpej * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS" 16b7d1ce77Sthorpej * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND 17b7d1ce77Sthorpej * FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE. 18b7d1ce77Sthorpej * 19b7d1ce77Sthorpej * Carnegie Mellon requests users of this software to return to 20b7d1ce77Sthorpej * 21b7d1ce77Sthorpej * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU 22b7d1ce77Sthorpej * School of Computer Science 23b7d1ce77Sthorpej * Carnegie Mellon University 24b7d1ce77Sthorpej * Pittsburgh PA 15213-3890 25b7d1ce77Sthorpej * 26b7d1ce77Sthorpej * any improvements or extensions that they make and grant Carnegie the 27b7d1ce77Sthorpej * rights to redistribute these changes. 28b7d1ce77Sthorpej */ 29b7d1ce77Sthorpej 30b7d1ce77Sthorpej /* 31b7d1ce77Sthorpej * Modified for NetBSD/i386 by Jason R. Thorpe, Numerical Aerospace 32b7d1ce77Sthorpej * Simulation Facility, NASA Ames Research Center. 33b7d1ce77Sthorpej */ 34b7d1ce77Sthorpej 35b7d1ce77Sthorpej #ifndef _I386_KCORE_H_ 36b7d1ce77Sthorpej #define _I386_KCORE_H_ 37b7d1ce77Sthorpej 38b7d1ce77Sthorpej typedef struct cpu_kcore_hdr { 3968da4482Sperry uint32_t pdppaddr; /* PA of PDP */ 4068da4482Sperry uint32_t nmemsegs; /* Number of RAM segments */ 41b7d1ce77Sthorpej #if 0 42b7d1ce77Sthorpej phys_ram_seg_t memsegs[]; /* RAM segments */ 43b7d1ce77Sthorpej #endif 44b7d1ce77Sthorpej } cpu_kcore_hdr_t; 45b7d1ce77Sthorpej 46f15c6971Sjym /* 47f15c6971Sjym * Used to indicate that PAE should be used for virtual address 48f15c6971Sjym * translation. As PDPpaddr is expected to be PAGE_SIZE aligned, 49f15c6971Sjym * this can be safely OR'ed in pdppaddr. 50f15c6971Sjym * To avoid any kind of conflict with existing MMU bits, we chose one 51f15c6971Sjym * ignored by hardware 52f15c6971Sjym */ 5326cfc3f1Smaxv #define I386_KCORE_PAE PTE_AVL1 54f15c6971Sjym 55ee652e42Sad #ifdef _KERNEL 56ee652e42Sad void dumpsys(void); 57ee652e42Sad 58ee652e42Sad extern struct pcb dumppcb; 59ee652e42Sad extern int sparse_dump; 60ee652e42Sad #endif 61ee652e42Sad 62b7d1ce77Sthorpej #endif /* _I386_KCORE_H_ */ 63