aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>2003-11-14 20:51:07 +0000
committerPeter Wemm <peter@FreeBSD.org>2003-11-14 20:51:07 +0000
commitdb049820e129396e767cb948b746b0b0ae1d7440 (patch)
treeed4e052673198cd96cf6f7ecb2f6545679d79b27
parentea6e3dd2b3eb6cb6bc864d55e1fda971a166f5ff (diff)
downloadsrc-db049820e129396e767cb948b746b0b0ae1d7440.tar.gz
src-db049820e129396e767cb948b746b0b0ae1d7440.zip
basemem is in K, not bytes. I think I tricked jhb into making the same
mistake I did and then committing it to cvs.
Notes
Notes: svn path=/head/; revision=122697
-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 d4683d5fb941..4610e3ac43d6 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 d4683d5fb941..4610e3ac43d6 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;
}