summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2010-08-28 22:29:04 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2010-08-28 22:29:04 +0000
commit12e05666452485a6642618583ab61ccccbc54a17 (patch)
tree237450a900bc907d3b6dce5fd1d471d783e4f803 /sys/arch
parent9a7d694858272bb1bbe3bd9c47ced73193cb3123 (diff)
Correctly compute memory size if less than 256MB.
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/loongson/loongson/machdep.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arch/loongson/loongson/machdep.c b/sys/arch/loongson/loongson/machdep.c
index 5af4db17263..2498db52b8b 100644
--- a/sys/arch/loongson/loongson/machdep.c
+++ b/sys/arch/loongson/loongson/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.22 2010/06/27 13:24:39 miod Exp $ */
+/* $OpenBSD: machdep.c,v 1.23 2010/08/28 22:29:03 miod Exp $ */
/*
* Copyright (c) 2009, 2010 Miodrag Vallat.
@@ -376,7 +376,8 @@ mips_init(int32_t argc, int32_t argv, int32_t envp, int32_t cv,
/* better expose the problem than limit to 256MB */
goto unsupported;
}
- }
+ } else
+ memhi = 0;
uncached_base = PHYS_TO_XKPHYS(0, CCA_NC);