Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/i386/include For x86_64, split the bootinfo memory ...
details: https://anonhg.NetBSD.org/src/rev/17a7d93e5be2
branches: trunk
changeset: 543317:17a7d93e5be2
user: fvdl <fvdl%NetBSD.org@localhost>
date: Sun Feb 23 02:45:44 2003 +0000
description:
For x86_64, split the bootinfo memory entry words to avoid growth of the
structure due to alignment.
diffstat:
sys/arch/i386/include/bootinfo.h | 16 +++++++++++++++-
1 files changed, 15 insertions(+), 1 deletions(-)
diffs (35 lines):
diff -r 8d095bca946d -r 17a7d93e5be2 sys/arch/i386/include/bootinfo.h
--- a/sys/arch/i386/include/bootinfo.h Sun Feb 23 02:44:44 2003 +0000
+++ b/sys/arch/i386/include/bootinfo.h Sun Feb 23 02:45:44 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bootinfo.h,v 1.12 2002/12/28 20:11:57 kristerw Exp $ */
+/* $NetBSD: bootinfo.h,v 1.13 2003/02/23 02:45:44 fvdl Exp $ */
/*
* Copyright (c) 1997
@@ -89,11 +89,25 @@
int esym;
};
+#ifdef __x86_64__
+/*
+ * Split in 32 bit values for the alignment of things, that must match
+ * for i386 and x86_64, since they share a bootloader.
+ */
+struct bi_memmap_entry {
+ u_int32_t addrlo;
+ u_int32_t addrhi;
+ u_int32_t sizelo;
+ u_int32_t sizehi;
+ u_int32_t type;
+};
+#else
struct bi_memmap_entry {
u_int64_t addr; /* beginning of block */ /* 8 */
u_int64_t size; /* size of block */ /* 8 */
u_int32_t type; /* type of block */ /* 4 */
}; /* == 20 */
+#endif
#define BIM_Memory 1 /* available RAM usable by OS */
#define BIM_Reserved 2 /* in use or reserved by the system */
Home |
Main Index |
Thread Index |
Old Index