diff options
author | Dale S. Rahn <rahnds@cvs.openbsd.org> | 1997-01-27 03:40:10 +0000 |
---|---|---|
committer | Dale S. Rahn <rahnds@cvs.openbsd.org> | 1997-01-27 03:40:10 +0000 |
commit | 5d0998036641eba25fcaf87733159708a857dccd (patch) | |
tree | 7f66bab189f9d3e9f1a51af6ce12ef9a88fc95d3 /sys/arch/powerpc | |
parent | 9e89b78faee985ae12cb4160a374a97755ecc7bc (diff) |
Fix another 16 bit operation on a 32 bit quantity.
don't do and of 16 bit quantity on a 32 bit register.
Also gets rid of the assembler warning/error.
Diffstat (limited to 'sys/arch/powerpc')
-rw-r--r-- | sys/arch/powerpc/powerpc/ofwreal.S | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/arch/powerpc/powerpc/ofwreal.S b/sys/arch/powerpc/powerpc/ofwreal.S index a097aac3be0..9f8a81d9bfd 100644 --- a/sys/arch/powerpc/powerpc/ofwreal.S +++ b/sys/arch/powerpc/powerpc/ofwreal.S @@ -1,4 +1,4 @@ -/* $OpenBSD: ofwreal.S,v 1.2 1996/12/28 06:22:10 rahnds Exp $ */ +/* $OpenBSD: ofwreal.S,v 1.3 1997/01/27 03:40:09 rahnds Exp $ */ /* $NetBSD: ofwreal.S,v 1.1 1996/09/30 16:34:51 ws Exp $ */ /* @@ -113,7 +113,9 @@ fwentry: stw 3,8(1) /* save return value */ mfmsr 4 - andi. 4,4,~(PSL_IR|PSL_DR) /* turn off MMU */ + lis 3,(PSL_IR|PSL_DR)@h /* turn off MMU */ + ori 3,3,(PSL_IR|PSL_DR)@l /* turn off MMU */ + andc 4,4,3 /* turn off MMU */ mtmsr 4 isync |