Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/x86/x86 Insert memory map with its real size, not t...



details:   https://anonhg.NetBSD.org/src/rev/a57830832783
branches:  trunk
changeset: 744343:a57830832783
user:      manu <manu%NetBSD.org@localhost>
date:      Thu Jan 30 01:49:44 2020 +0000

description:
Insert memory map with its real size, not the maximum possible.

diffstat:

 sys/arch/x86/x86/multiboot2.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r bdb60cb45cdb -r a57830832783 sys/arch/x86/x86/multiboot2.c
--- a/sys/arch/x86/x86/multiboot2.c     Thu Jan 30 01:39:40 2020 +0000
+++ b/sys/arch/x86/x86/multiboot2.c     Thu Jan 30 01:49:44 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: multiboot2.c,v 1.3 2019/12/10 02:06:07 manu Exp $      */
+/*     $NetBSD: multiboot2.c,v 1.4 2020/01/30 01:49:44 manu Exp $      */
 
 /*-
  * Copyright (c) 2005, 2006 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: multiboot2.c,v 1.3 2019/12/10 02:06:07 manu Exp $");
+__KERNEL_RCSID(0, "$NetBSD: multiboot2.c,v 1.4 2020/01/30 01:49:44 manu Exp $");
 
 #include "opt_multiboot.h"
 
@@ -565,7 +565,7 @@
        }
 
        bootinfo_add((struct btinfo_common *)bim, BTINFO_MEMMAP,
-           sizeof(bimbuf));
+           (char*)&bim->entry[bim->num] - (char *)bim);
 
        return;
 }



Home | Main Index | Thread Index | Old Index