diff options
author | peter <peter@FreeBSD.org> | 2003-11-14 20:51:07 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2003-11-14 20:51:07 +0000 |
commit | af7f62665d5a48d63d7f4c984c6511297dbb645c (patch) | |
tree | ed4e052673198cd96cf6f7ecb2f6545679d79b27 /sys | |
parent | bb6812a6420c80fcf7700c89f9cad40f2ba1bc44 (diff) | |
download | FreeBSD-src-af7f62665d5a48d63d7f4c984c6511297dbb645c.zip FreeBSD-src-af7f62665d5a48d63d7f4c984c6511297dbb645c.tar.gz |
basemem is in K, not bytes. I think I tricked jhb into making the same
mistake I did and then committing it to cvs.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/amd64/amd64/mptable.c | 2 | ||||
-rw-r--r-- | sys/i386/i386/mptable.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/amd64/amd64/mptable.c b/sys/amd64/amd64/mptable.c index d4683d5..4610e3a 100644 --- a/sys/amd64/amd64/mptable.c +++ b/sys/amd64/amd64/mptable.c @@ -237,7 +237,7 @@ mptable_probe(void) goto found; } else { /* last 1K of base memory, effective 'top of base' passed in */ - target = (u_int32_t) (basemem - 0x400); + target = (u_int32_t) ((basemem * 1024) - 0x400); if ((x = search_for_sig(target, 1024 / 4)) >= 0) goto found; } diff --git a/sys/i386/i386/mptable.c b/sys/i386/i386/mptable.c index d4683d5..4610e3a 100644 --- a/sys/i386/i386/mptable.c +++ b/sys/i386/i386/mptable.c @@ -237,7 +237,7 @@ mptable_probe(void) goto found; } else { /* last 1K of base memory, effective 'top of base' passed in */ - target = (u_int32_t) (basemem - 0x400); + target = (u_int32_t) ((basemem * 1024) - 0x400); if ((x = search_for_sig(target, 1024 / 4)) >= 0) goto found; } |