summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2002-02-02 21:10:57 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2002-02-02 21:10:57 +0000
commit9f3b1c980d68d79bbbe03a6ef3b421633f54d10d (patch)
treeceb7f08f9558f4c7c20b87fed61a0d76060e237a /sys/arch
parentc0eee30d69dce5413e675e924023ced683502c8f (diff)
fix 'physmem' usage
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/hppa/hppa/machdep.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/hppa/hppa/machdep.c b/sys/arch/hppa/hppa/machdep.c
index 3474e83215f..d792dbf3f01 100644
--- a/sys/arch/hppa/hppa/machdep.c
+++ b/sys/arch/hppa/hppa/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.51 2002/02/02 21:06:46 mickey Exp $ */
+/* $OpenBSD: machdep.c,v 1.52 2002/02/02 21:10:56 mickey Exp $ */
/*
* Copyright (c) 1999-2002 Michael Shalayeff
@@ -488,8 +488,8 @@ hptsize=256; /* XXX one page for now */
bzero ((void *)vstart, (v - vstart));
vstart = v;
+ /* sets physmem */
pmap_bootstrap(&vstart, &vend);
- physmem = totalphysmem - btoc(vstart);
/* alloc msgbuf */
if (!(msgbufp = (void *)pmap_steal_memory(MSGBUFSIZE, NULL, NULL)))
@@ -1016,7 +1016,7 @@ dumpsys()
if (!(error = cpu_dump())) {
- bytes = ctob(physmem);
+ bytes = ctob(totalphysmem);
maddr = NULL;
blkno = dumplo + cpu_dumpsize();
dump = bdevsw[major(dumpdev)].d_dump;