Update of /cvsroot/linux-vax/kernel-2.5/arch/vax/lib
In directory sc8-pr-cvs1:/tmp/cvs-serv22795/arch/vax/lib
Modified Files:
clear_user.S copy_tofrom_user.S strncpy_user.S strnlen_user.S
Log Message:
Fixes from Dave on user-space access fault handling
Index: clear_user.S
===================================================================
RCS file: /cvsroot/linux-vax/kernel-2.5/arch/vax/lib/clear_user.S,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- clear_user.S 20 May 2002 00:33:33 -0000 1.4
+++ clear_user.S 16 Feb 2003 13:17:20 -0000 1.5
@@ -16,6 +16,7 @@
#define EX(insn, addr, reg, handler) \
9: insn addr, reg; \
.section __ex_table, "a"; \
+ .align 2 ; \
.long 9b, handler; \
.previous
Index: copy_tofrom_user.S
===================================================================
RCS file: /cvsroot/linux-vax/kernel-2.5/arch/vax/lib/copy_tofrom_user.S,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- copy_tofrom_user.S 20 May 2002 00:33:33 -0000 1.4
+++ copy_tofrom_user.S 16 Feb 2003 13:17:20 -0000 1.5
@@ -15,6 +15,7 @@
#define EX(insn, arg0, arg1, handler) \
9: insn arg0, arg1; \
.section __ex_table, "a"; \
+ .align 2 ; \
.long 9b, handler; \
.previous
@@ -33,4 +34,4 @@
.align 4
l_fixup:
s_fixup: ret
- .previous
\ No newline at end of file
+ .previous
Index: strncpy_user.S
===================================================================
RCS file: /cvsroot/linux-vax/kernel-2.5/arch/vax/lib/strncpy_user.S,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- strncpy_user.S 20 May 2002 00:33:33 -0000 1.4
+++ strncpy_user.S 16 Feb 2003 13:17:20 -0000 1.5
@@ -16,6 +16,7 @@
#define EX(insn, addr, reg, handler) \
9: insn addr, reg; \
.section __ex_table, "a"; \
+ .align 2 ; \
.long 9b, handler; \
.previous
@@ -35,6 +36,6 @@
2: subl2 r1, r0
ret
.section .fixup, "ax"
-fault: movl r0, -EFAULT
+fault: movl -EFAULT, r0
ret
.previous
Index: strnlen_user.S
===================================================================
RCS file: /cvsroot/linux-vax/kernel-2.5/arch/vax/lib/strnlen_user.S,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- strnlen_user.S 20 May 2002 00:33:33 -0000 1.4
+++ strnlen_user.S 16 Feb 2003 13:17:20 -0000 1.5
@@ -15,6 +15,7 @@
#define EX(insn, arg0, arg1, handler) \
9: insn arg0, arg1; \
.section __ex_table, "a"; \
+ .align 2 ; \
.long 9b, handler; \
.previous
@@ -34,6 +35,5 @@
ret
.section .fixup,"ax"
- .align 4
fault: movl $0, r0
- ret
\ No newline at end of file
+ ret
|