diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2015-09-29 17:07:54 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2015-09-29 17:07:54 +0000 |
commit | 1173791ee87480baf79efbef5d684541326bf2de (patch) | |
tree | 791eacbde98bbfa7a65d1e0647ae04f996fbbed5 /sys/arch | |
parent | a7825b3455d1ee8f8c6e6d230fd486e18440d8a7 (diff) |
Use the DMTC0 macro and MTC0_HAZARD in the UPAGES > 1 case. Now R8000 kernel
have all their m[ft]c0 instructions correctly wrapped.
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/mips64/mips64/context.S | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arch/mips64/mips64/context.S b/sys/arch/mips64/mips64/context.S index b19316cb26e..40ea1dbbdd3 100644 --- a/sys/arch/mips64/mips64/context.S +++ b/sys/arch/mips64/mips64/context.S @@ -1,4 +1,4 @@ -/* $OpenBSD: context.S,v 1.53 2014/03/22 00:01:04 miod Exp $ */ +/* $OpenBSD: context.S,v 1.54 2015/09/29 17:07:53 miod Exp $ */ /* * Copyright (c) 2002-2003 Opsycon AB (www.opsycon.se / www.opsycon.com) @@ -287,7 +287,8 @@ ctx3: #if PG_ASID_SHIFT != 0 dsll v0, PG_ASID_SHIFT #endif - dmtc0 v0, COP_0_TLB_HI # init high entry (tlbid) + DMTC0 v0, COP_0_TLB_HI # init high entry (tlbid) + MTC0_HAZARD #endif /* } UPAGES > 1 */ #ifdef CPU_LOONGSON2 |