summaryrefslogtreecommitdiff
path: root/sys/arch/loongson
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2010-02-09 21:30:12 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2010-02-09 21:30:12 +0000
commit93c7d2be883100bf4bd91acc3da5acb2225a9bbd (patch)
treeca48cf45cce2e3cee9680cd4f45edc2d13244518 /sys/arch/loongson
parent5ec303afa34da1dad80ec11cf4e02ff19e5e2ccc (diff)
Flush caches upon startup anyway, the gdium pmon keeps it dirty, unlike
the lemote pmon.
Diffstat (limited to 'sys/arch/loongson')
-rw-r--r--sys/arch/loongson/loongson/machdep.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/arch/loongson/loongson/machdep.c b/sys/arch/loongson/loongson/machdep.c
index 2148fd0301b..cb2363a1170 100644
--- a/sys/arch/loongson/loongson/machdep.c
+++ b/sys/arch/loongson/loongson/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.10 2010/02/09 19:24:08 miod Exp $ */
+/* $OpenBSD: machdep.c,v 1.11 2010/02/09 21:30:11 miod Exp $ */
/*
* Copyright (c) 2009, 2010 Miodrag Vallat.
@@ -429,6 +429,7 @@ mips_init(int32_t argc, int32_t argv, int32_t envp, int32_t cv)
*/
Loongson2_ConfigCache(curcpu());
+ Loongson2_SyncCache(curcpu());
tlb_set_page_mask(TLB_PAGE_MASK);
tlb_set_wired(0);