diff options
author | rwatson <rwatson@FreeBSD.org> | 2007-12-26 10:57:35 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2007-12-26 10:57:35 +0000 |
commit | 26435e9b8db00f61f14db439ebe23a6bf26e2817 (patch) | |
tree | 928d3f5ae099d1a7917bc864d51999de3ced0480 | |
parent | 14b3acdf5da9295670216a45d731bea96d07e27a (diff) | |
download | FreeBSD-src-26435e9b8db00f61f14db439ebe23a6bf26e2817.zip FreeBSD-src-26435e9b8db00f61f14db439ebe23a6bf26e2817.tar.gz |
Define a new kernel dump "architecture", TEXTDUMPMAGIC, which is used
to identify textdumps in the swap/dump partition. While textdumps
aren't really an architecture, they are architecture-neutral and so
don't really correspond to any existing architecture.
Define a version number for textdumps, KERNELDUMP_TEXT_VERSION, of 1.
MFC after: 3 months
-rw-r--r-- | sys/sys/kerneldump.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/sys/kerneldump.h b/sys/sys/kerneldump.h index e002384..f9f851b 100644 --- a/sys/sys/kerneldump.h +++ b/sys/sys/kerneldump.h @@ -60,6 +60,7 @@ struct kerneldumpheader { char magic[20]; #define KERNELDUMPMAGIC "FreeBSD Kernel Dump" +#define TEXTDUMPMAGIC "FreeBSD Text Dump" #define KERNELDUMPMAGIC_CLEARED "Cleared Kernel Dump" char architecture[12]; uint32_t version; @@ -71,6 +72,7 @@ struct kerneldumpheader { #define KERNELDUMP_SPARC64_VERSION 1 #define KERNELDUMP_AMD64_VERSION 2 #define KERNELDUMP_ARM_VERSION 1 +#define KERNELDUMP_TEXT_VERSION 1 uint64_t dumplength; /* excl headers */ uint64_t dumptime; uint32_t blocksize; |