diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2010-08-28 22:29:04 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2010-08-28 22:29:04 +0000 |
commit | 12e05666452485a6642618583ab61ccccbc54a17 (patch) | |
tree | 237450a900bc907d3b6dce5fd1d471d783e4f803 /sys/arch | |
parent | 9a7d694858272bb1bbe3bd9c47ced73193cb3123 (diff) |
Correctly compute memory size if less than 256MB.
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/loongson/loongson/machdep.c | 5 |
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); |