1/* $OpenBSD: kcore.h,v 1.1 2016/12/17 23:38:33 patrick Exp $ */
2/* public domain */
3
4/* Make sure this is larger than DRAM_BLOCKS on all arm-based platforms */
5#define NPHYS_RAM_SEGS 8
6
7typedef struct cpu_kcore_hdr {
8 u_int64_t kernelbase; /* value of KERNEL_BASE */
9 u_int64_t kerneloffs; /* offset of kernel in RAM */
10 u_int64_t staticsize; /* size of contiguous mapping */
11 u_int64_t pmap_kernel_l1; /* pmap_kernel()->pm_l1 */
12 u_int64_t pmap_kernel_l2; /* pmap_kernel()->pm_l2 */
13 u_int64_t reserved[11];
14 phys_ram_seg_t ram_segs[NPHYS_RAM_SEGS];
15} cpu_kcore_hdr_t;