summaryrefslogtreecommitdiff
path: root/sys/arch/loongson
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/loongson')
-rw-r--r--sys/arch/loongson/loongson/machdep.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/loongson/loongson/machdep.c b/sys/arch/loongson/loongson/machdep.c
index 5f13c134231..47a85ab13e3 100644
--- a/sys/arch/loongson/loongson/machdep.c
+++ b/sys/arch/loongson/loongson/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.96 2021/05/16 15:10:19 deraadt Exp $ */
+/* $OpenBSD: machdep.c,v 1.97 2021/07/12 09:29:18 visa Exp $ */
/*
* Copyright (c) 2009, 2010, 2014 Miodrag Vallat.
@@ -1271,14 +1271,14 @@ hw_cpu_hatch(struct cpu_info *ci)
*/
setcurcpu(ci);
- tlb_init(ci->ci_hw.tlbsize);
- tlb_set_pid(0);
-
/*
* Make sure we can access the extended address space.
*/
setsr(getsr() | SR_KX | SR_UX);
+ tlb_init(ci->ci_hw.tlbsize);
+ tlb_set_pid(0);
+
/*
* Turn off bootstrap exception vectors.
*/