summaryrefslogtreecommitdiff
path: root/sys/arch/loongson
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2010-02-01 05:38:10 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2010-02-01 05:38:10 +0000
commitcc5fbcff052247084995bbbbed881b6879eb0ccf (patch)
tree5e7fcfd933a8dfe60c8934f5818801cf085a8cbe /sys/arch/loongson
parent959e1766f7f88654b512421404deac6c3cae0cc9 (diff)
Limit memory to 256MB at the moment, (intrusive) part of the branch
prediction workarounds until something better is devised.
Diffstat (limited to 'sys/arch/loongson')
-rw-r--r--sys/arch/loongson/loongson/machdep.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/arch/loongson/loongson/machdep.c b/sys/arch/loongson/loongson/machdep.c
index 0351134303d..38bc9fcea9d 100644
--- a/sys/arch/loongson/loongson/machdep.c
+++ b/sys/arch/loongson/loongson/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.5 2010/02/01 05:23:21 miod Exp $ */
+/* $OpenBSD: machdep.c,v 1.6 2010/02/01 05:38:09 miod Exp $ */
/*
* Copyright (c) 2009 Miodrag Vallat.
@@ -325,6 +325,10 @@ mips_init(int32_t argc, int32_t argv, int32_t envp, int32_t cv)
break;
default:
case 0x2f:
+#define I_HEART_SCARY_ERRATA_FROM_HELL
+#ifdef I_HEART_SCARY_ERRATA_FROM_HELL
+ memhi = 0;
+#endif
loongson2f_setup(memlo, memhi);
break;
}