summaryrefslogtreecommitdiffstats
path: root/sys/powerpc
diff options
context:
space:
mode:
authorjhibbits <jhibbits@FreeBSD.org>2017-07-14 01:45:43 +0000
committerjhibbits <jhibbits@FreeBSD.org>2017-07-14 01:45:43 +0000
commit493543cc05b3a1a0ce355c0d5e39219b5ca9f5fb (patch)
tree7b7bbd0195e6001e5b67a010ce3ab58264cdc6fa /sys/powerpc
parent3ee4f70beb2a4abd85aa0baa83fc0cf3261628f8 (diff)
downloadFreeBSD-src-493543cc05b3a1a0ce355c0d5e39219b5ca9f5fb.zip
FreeBSD-src-493543cc05b3a1a0ce355c0d5e39219b5ca9f5fb.tar.gz
MFC r320489:
Use the more common Book-E idiom for disabling interrupts.
Diffstat (limited to 'sys/powerpc')
-rw-r--r--sys/powerpc/booke/pmap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/powerpc/booke/pmap.c b/sys/powerpc/booke/pmap.c
index ffa17f4..b7ffdd6 100644
--- a/sys/powerpc/booke/pmap.c
+++ b/sys/powerpc/booke/pmap.c
@@ -3156,7 +3156,7 @@ tlb1_read_entry(tlb_entry_t *entry, unsigned int slot)
KASSERT((entry != NULL), ("%s(): Entry is NULL!", __func__));
msr = mfmsr();
- mtmsr(msr & ~PSL_EE);
+ __asm __volatile("wrteei 0");
mas0 = MAS0_TLBSEL(1) | MAS0_ESEL(slot);
mtspr(SPR_MAS0, mas0);
@@ -3202,7 +3202,7 @@ tlb1_write_entry(tlb_entry_t *e, unsigned int idx)
//debugf("tlb1_write_entry: mas0 = 0x%08x\n", mas0);
msr = mfmsr();
- mtmsr(msr & ~PSL_EE);
+ __asm __volatile("wrteei 0");
mtspr(SPR_MAS0, mas0);
__asm __volatile("isync");
OpenPOWER on IntegriCloud