summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2003-11-14 20:51:07 +0000
committerpeter <peter@FreeBSD.org>2003-11-14 20:51:07 +0000
commitaf7f62665d5a48d63d7f4c984c6511297dbb645c (patch)
treeed4e052673198cd96cf6f7ecb2f6545679d79b27 /sys
parentbb6812a6420c80fcf7700c89f9cad40f2ba1bc44 (diff)
downloadFreeBSD-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.c2
-rw-r--r--sys/i386/i386/mptable.c2
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;
}
OpenPOWER on IntegriCloud