git: DragonFly_RELEASE_6_0 kernel/mptable: Fix wrong start of mptable search area for non-EBDA case.

Sascha Wildner swildner at crater.dragonflybsd.org
Tue Apr 27 12:33:21 PDT 2021


commit cfc71ada51c702408e859ebd7c68dcde48875982
Author: Sascha Wildner <saw at online.de>
Date:   Tue Apr 27 21:31:24 2021 +0200

    kernel/mptable: Fix wrong start of mptable search area for non-EBDA case.
    
    If no Extended BIOS Data Area (EBDA) exists, the kernel will fall back
    to searching the MP table in the last kilobyte of the base memory. The
    amount of base memory is in kilobytes but the calculation was treating
    it like bytes. Adjust the calculation.
    
    Nothing except bhyve seems to have triggered this path so far. Usually
    there is an EBDA.
    
    Thanks to everyone involved.
    
    Reported-by: Pierre-Alain TORET <pierre-alain.toret at protonmail.com>
    Fix-by:      Peter Grehan <grehan at freebsd.org> (changed a little by me)
    FreeBSD-bug: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=255191

Summary of changes:
 sys/platform/pc64/x86_64/mptable.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/cfc71ada51c702408e859ebd7c68dcde48875982


-- 
DragonFly BSD source repository


More information about the Commits mailing list