summaryrefslogtreecommitdiff
path: root/sys/arch/arm/include
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2007-05-19 15:49:07 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2007-05-19 15:49:07 +0000
commit55effb9ba5d36fabab2ee9010d12cba4ce97f7ab (patch)
tree9f72f6739eed57055aad3e02023fabf3ecd7de93 /sys/arch/arm/include
parent912729879adc44cafe45c930dcbb3a9ffb07ea0e (diff)
Kernel crash dump support for arm-based platform, with minimal support in
libkvm, but all the necessary information for a complete _kvm_kvatop() is available in the crash dump.
Diffstat (limited to 'sys/arch/arm/include')
-rw-r--r--sys/arch/arm/include/kcore.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/sys/arch/arm/include/kcore.h b/sys/arch/arm/include/kcore.h
new file mode 100644
index 00000000000..02050490bbc
--- /dev/null
+++ b/sys/arch/arm/include/kcore.h
@@ -0,0 +1,15 @@
+/* $OpenBSD: kcore.h,v 1.1 2007/05/19 15:49:05 miod Exp $ */
+/* public domain */
+
+/* Make sure this is larger than DRAM_BLOCKS on all arm-based platforms */
+#define NPHYS_RAM_SEGS 8
+
+typedef struct cpu_kcore_hdr {
+ u_int32_t kernelbase; /* value of KERNEL_BASE */
+ u_int32_t kerneloffs; /* offset of kernel in RAM */
+ u_int32_t staticsize; /* size of contiguous mapping */
+ u_int32_t pmap_kernel_l1; /* pmap_kernel()->pm_l1 */
+ u_int32_t pmap_kernel_l2; /* pmap_kernel()->pm_l2 */
+ u_int32_t reserved[11];
+ phys_ram_seg_t ram_segs[NPHYS_RAM_SEGS];
+} cpu_kcore_hdr_t;