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
This commit is contained in:
Robert Watson 2007-12-26 10:57:35 +00:00
parent 44daa2da55
commit 7bf5359e5c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=174920

View file

@ -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;