1*81020315Smlarkin /* $OpenBSD: kcore.h,v 1.5 2018/04/03 07:13:37 mlarkin Exp $ */ 2f5df1827Smickey /* $NetBSD: kcore.h,v 1.1 2003/04/26 18:39:43 fvdl Exp $ */ 3f5df1827Smickey 4f5df1827Smickey /* 5f5df1827Smickey * Copyright (c) 1996 Carnegie-Mellon University. 6f5df1827Smickey * All rights reserved. 7f5df1827Smickey * 8f5df1827Smickey * Author: Chris G. Demetriou 9f5df1827Smickey * 10f5df1827Smickey * Permission to use, copy, modify and distribute this software and 11f5df1827Smickey * its documentation is hereby granted, provided that both the copyright 12f5df1827Smickey * notice and this permission notice appear in all copies of the 13f5df1827Smickey * software, derivative works or modified versions, and any portions 14f5df1827Smickey * thereof, and that both notices appear in supporting documentation. 15f5df1827Smickey * 16f5df1827Smickey * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS" 17f5df1827Smickey * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND 18f5df1827Smickey * FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE. 19f5df1827Smickey * 20f5df1827Smickey * Carnegie Mellon requests users of this software to return to 21f5df1827Smickey * 22f5df1827Smickey * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU 23f5df1827Smickey * School of Computer Science 24f5df1827Smickey * Carnegie Mellon University 25f5df1827Smickey * Pittsburgh PA 15213-3890 26f5df1827Smickey * 27f5df1827Smickey * any improvements or extensions that they make and grant Carnegie the 28f5df1827Smickey * rights to redistribute these changes. 29f5df1827Smickey */ 30f5df1827Smickey 31f5df1827Smickey /* 32f5df1827Smickey * Modified for NetBSD/i386 by Jason R. Thorpe, Numerical Aerospace 33f5df1827Smickey * Simulation Facility, NASA Ames Research Center. 34f5df1827Smickey * 35f5df1827Smickey * And once again modified for x86-64 by Frank van der Linden of 36f5df1827Smickey * Wasabi Systems, Inc. 37f5df1827Smickey */ 38f5df1827Smickey 392fa72412Spirofti #ifndef _MACHINE_KCORE_H_ 402fa72412Spirofti #define _MACHINE_KCORE_H_ 41f5df1827Smickey 42f5df1827Smickey typedef struct cpu_kcore_hdr { 43f5df1827Smickey u_int64_t ptdpaddr; /* PA of PML4 */ 44f5df1827Smickey u_int64_t nmemsegs; /* Number of RAM segments */ 45f5df1827Smickey } cpu_kcore_hdr_t; 46f5df1827Smickey 472fa72412Spirofti #endif /* _MACHINE_KCORE_H_ */ 48