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 Fix multiboot1 header detection



details:   https://anonhg.NetBSD.org/src/rev/028eea490be4
branches:  trunk
changeset: 455476:028eea490be4
user:      manu <manu%NetBSD.org@localhost>
date:      Fri Oct 18 01:04:24 2019 +0000

description:
Fix multiboot1 header detection

Specification states it must be must be longword (32-bit) aligned

diffstat:

 sys/arch/i386/stand/lib/exec_multiboot1.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r c3ddb94d3cc9 -r 028eea490be4 sys/arch/i386/stand/lib/exec_multiboot1.c
--- a/sys/arch/i386/stand/lib/exec_multiboot1.c Fri Oct 18 01:00:24 2019 +0000
+++ b/sys/arch/i386/stand/lib/exec_multiboot1.c Fri Oct 18 01:04:24 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: exec_multiboot1.c,v 1.1 2019/09/13 02:19:46 manu Exp $ */
+/* $NetBSD: exec_multiboot1.c,v 1.2 2019/10/18 01:04:24 manu Exp $ */
 
 /*
  * Copyright (c) 2019 The NetBSD Foundation, Inc.
@@ -126,7 +126,7 @@
        if (readen < sizeof(struct multiboot_header))
                goto out;
 
-       for (i = 0; i < readen; i += 8) {
+       for (i = 0; i < readen; i += 4) {
                struct multiboot_header *mbh;
 
                mbh = (struct multiboot_header *)(buf + i);



Home | Main Index | Thread Index | Old Index