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