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