Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/i386/stand/lib Bring arch/i386/stand bootinfo struc...



details:   https://anonhg.NetBSD.org/src/rev/772c0e6c9bb7
branches:  trunk
changeset: 791435:772c0e6c9bb7
user:      jakllsch <jakllsch%NetBSD.org@localhost>
date:      Mon Nov 18 03:52:45 2013 +0000

description:
Bring arch/i386/stand bootinfo structure in line with the kernel's
fixed-layout understanding of it.

diffstat:

 sys/arch/i386/stand/lib/bootinfo.h |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (27 lines):

diff -r 8ff64db6cf29 -r 772c0e6c9bb7 sys/arch/i386/stand/lib/bootinfo.h
--- a/sys/arch/i386/stand/lib/bootinfo.h        Mon Nov 18 01:39:34 2013 +0000
+++ b/sys/arch/i386/stand/lib/bootinfo.h        Mon Nov 18 03:52:45 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bootinfo.h,v 1.9 2006/01/25 18:28:26 christos Exp $    */
+/*     $NetBSD: bootinfo.h,v 1.10 2013/11/18 03:52:45 jakllsch Exp $   */
 
 /*
  * Copyright (c) 1997
@@ -29,14 +29,14 @@
 #include <machine/bootinfo.h>
 
 struct bootinfo {
-       int nentries;
-       physaddr_t entry[1];
+       uint32_t nentries;
+       uint32_t entry[1];
 };
 
 extern struct bootinfo *bootinfo;
 
 #define BI_ALLOC(max) (bootinfo = alloc(sizeof(struct bootinfo) \
-                                        + ((max) - 1) * sizeof(physaddr_t))) \
+                                        + ((max) - 1) * sizeof(uint32_t))) \
                       ->nentries = 0
 
 #define BI_FREE() dealloc(bootinfo, 0)



Home | Main Index | Thread Index | Old Index