Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/arm/arm32 Undo part of rev 1.8: SWP intructions rea...



details:   https://anonhg.NetBSD.org/src/rev/0b21e9a68982
branches:  trunk
changeset: 522262:0b21e9a68982
user:      bjh21 <bjh21%NetBSD.org@localhost>
date:      Thu Feb 14 11:59:26 2002 +0000

description:
Undo part of rev 1.8: SWP intructions really do both read and write
the referenced address.

diffstat:

 sys/arch/arm/arm32/fault.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 64aa9ed10624 -r 0b21e9a68982 sys/arch/arm/arm32/fault.c
--- a/sys/arch/arm/arm32/fault.c        Thu Feb 14 11:54:16 2002 +0000
+++ b/sys/arch/arm/arm32/fault.c        Thu Feb 14 11:59:26 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fault.c,v 1.8 2002/02/14 07:08:04 chs Exp $    */
+/*     $NetBSD: fault.c,v 1.9 2002/02/14 11:59:26 bjh21 Exp $  */
 
 /*
  * Copyright (c) 1994-1997 Mark Brinicombe.
@@ -471,7 +471,7 @@
                        ftype = VM_PROT_WRITE; 
                /* SWP instruction ? */
                else if ((fault_instruction & 0x0fb00ff0) == 0x01000090)
-                       ftype = VM_PROT_WRITE; 
+                       ftype = VM_PROT_READ | VM_PROT_WRITE;
                else
                        ftype = VM_PROT_READ;
 



Home | Main Index | Thread Index | Old Index