Update of /cvsroot/linux-vax/kernel-2.4/arch/vax/lib
In directory sc8-pr-cvs1:/tmp/cvs-serv31418
Modified Files:
clear_user.S copy_tofrom_user.S strncpy_user.S strnlen_user.S
Log Message:
DA: fix alignment for exception table.. return EFAULT properly..
Index: clear_user.S
===================================================================
RCS file: /cvsroot/linux-vax/kernel-2.4/arch/vax/lib/clear_user.S,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- clear_user.S 12 Feb 2003 02:37:33 -0000 1.5
+++ clear_user.S 16 Feb 2003 08:01:54 -0000 1.6
@@ -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.4/arch/vax/lib/copy_tofrom_user.S,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- copy_tofrom_user.S 12 Feb 2003 02:37:33 -0000 1.2
+++ copy_tofrom_user.S 16 Feb 2003 08:01:54 -0000 1.3
@@ -15,6 +15,7 @@
#define EX(insn, arg0, arg1, handler) \
9: insn arg0, arg1; \
.section __ex_table, "a"; \
+ .align 2 ; \
.long 9b, handler; \
.previous
@@ -36,4 +37,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.4/arch/vax/lib/strncpy_user.S,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- strncpy_user.S 12 Feb 2003 02:37:33 -0000 1.3
+++ strncpy_user.S 16 Feb 2003 08:01:55 -0000 1.4
@@ -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.4/arch/vax/lib/strnlen_user.S,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- strnlen_user.S 12 Feb 2003 02:37:33 -0000 1.2
+++ strnlen_user.S 16 Feb 2003 08:01:55 -0000 1.3
@@ -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
|