Date: Tue, 2 Apr 2002 16:32:00 -0800 From: Marcel Moolenaar <marcel@xcllnt.net> To: Poul-Henning Kamp <phk@critter.freebsd.dk> Cc: Dag-Erling Smorgrav <des@ofug.org>, Robert Watson <rwatson@FreeBSD.org>, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/ia64/ia64 ia64dump.c Message-ID: <20020403003200.GB315@dhcp01.pn.xcllnt.net> In-Reply-To: <34442.1017781370@critter.freebsd.dk> References: <xzpu1qtu8k2.fsf@flood.ping.uio.no> <34442.1017781370@critter.freebsd.dk>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Apr 02, 2002 at 11:02:50PM +0200, Poul-Henning Kamp wrote:
>
> The format of the header is not architecture dependent, it is the
> same 512 bytes of the same exact layout on all architectures.
Correct. The endianness is trivially solved:
\begin{patch}
Index: kerneldump.h
===================================================================
RCS file: /home/ncvs/src/sys/sys/kerneldump.h,v
retrieving revision 1.1
diff -u -r1.1 kerneldump.h
--- kerneldump.h 31 Mar 2002 21:48:08 -0000 1.1
+++ kerneldump.h 3 Apr 2002 00:28:23 -0000
@@ -39,8 +39,11 @@
#define _SYS_KERNELDUMP_H
struct kerneldumpheader {
- char magic[20];
+ char magic[19];
# define KERNELDUMPMAGIC "FreeBSD Kernel Dump"
+ char endianness;
+# define KERNELDUMP_BIG_ENDIAN '>'
+# define KERNELDUMP_LITTLE_ENDIAN '<'
char architecture[12];
uint32_t version;
# define KERNELDUMPVERSION 1
\end{patch}
I did not think about it much, nor tested it, but if it's not
already in its final form than it's pretty descriptive :-)
--
Marcel Moolenaar USPA: A-39004 marcel@xcllnt.net
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020403003200.GB315>
