[COMPAT] compat_sys_futex 2/3 ia64

[COMPAT] compat_sys_futex 2/3 ia64

Post by Stephen Rothwel » Sun, 16 Feb 2003 16:00:27



Hi David,

ia 64 part of the patch.  This gives you a 32 bit version of sys_futex
(hopefully).

--
Cheers,

http://www.canb.auug.org.au/~sfr/

diff -ruN 2.5.61-32bit.1/arch/ia64/ia32/ia32_entry.S 2.5.61-32bit.2/arch/ia64/ia32/ia32_entry.S
--- 2.5.61-32bit.1/arch/ia64/ia32/ia32_entry.S  2003-02-11 09:39:10.000000000 +1100

        data8 sys_ni_syscall
        data8 sys_ni_syscall
        data8 sys_ni_syscall
+       data8 sys_ni_syscall    /* 230 */
+       data8 sys_ni_syscall
+       data8 sys_ni_syscall
+       data8 sys_ni_syscall
+       data8 sys_ni_syscall
+       data8 sys_ni_syscall    /* 235 */
+       data8 sys_ni_syscall
+       data8 sys_ni_syscall
+       data8 sys_ni_syscall
+       data8 sys_ni_syscall
+       data8 compat_sys_futex  /* 240 */
+       data8 sys_ni_syscall
+       data8 sys_ni_syscall
+       data8 sys_ni_syscall
+       data8 sys_ni_syscall
+       data8 sys_ni_syscall    /* 245 */
+       data8 sys_ni_syscall
+       data8 sys_ni_syscall
+       data8 sys_ni_syscall
+       data8 sys_ni_syscall
        /*
         *  CAUTION: If any system calls are added beyond this point
         *      then the check in `arch/ia64/kernel/ivt.S' will have
diff -ruN 2.5.61-32bit.1/arch/ia64/kernel/ivt.S 2.5.61-32bit.2/arch/ia64/kernel/ivt.S
--- 2.5.61-32bit.1/arch/ia64/kernel/ivt.S       2003-02-11 09:39:11.000000000 +1100

        alloc r15=ar.pfs,0,0,6,0        // must first in an insn group
        ;;
        ld4 r8=[r14],8          // r8 == eax (syscall number)
-       mov r15=230             // number of entries in ia32 system call table
+       mov r15=250             // number of entries in ia32 system call table
        ;;
        cmp.ltu.unc p6,p7=r8,r15
        ld4 out1=[r14],8        // r9 == ecx
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

1. [COMPAT] compat_sys_futex 2/7 ia64

Hi David,

Here is the ia64 part of the patch.  I needed to expand the ia32 syscall
table as the syscall number for sys_futex on ia32 is 240. I hope I guessed
correctly :-)

--
Cheers,

http://www.canb.auug.org.au/~sfr/

diff -ruN 2.5.60-32bit.1/arch/ia64/ia32/ia32_entry.S 2.5.60-32bit.2/arch/ia64/ia32/ia32_entry.S
--- 2.5.60-32bit.1/arch/ia64/ia32/ia32_entry.S  2003-02-11 09:39:10.000000000 +1100

        data8 sys_ni_syscall
        data8 sys_ni_syscall
        data8 sys_ni_syscall
+       data8 sys_ni_syscall    /* 230 */
+       data8 sys_ni_syscall
+       data8 sys_ni_syscall
+       data8 sys_ni_syscall
+       data8 sys_ni_syscall
+       data8 sys_ni_syscall    /* 235 */
+       data8 sys_ni_syscall
+       data8 sys_ni_syscall
+       data8 sys_ni_syscall
+       data8 sys_ni_syscall
+       data8 compat_sys_futex  /* 240 */
+       data8 sys_ni_syscall
+       data8 sys_ni_syscall
+       data8 sys_ni_syscall
+       data8 sys_ni_syscall
+       data8 sys_ni_syscall    /* 245 */
+       data8 sys_ni_syscall
+       data8 sys_ni_syscall
+       data8 sys_ni_syscall
+       data8 sys_ni_syscall
        /*
         *  CAUTION: If any system calls are added beyond this point
         *      then the check in `arch/ia64/kernel/ivt.S' will have
diff -ruN 2.5.60-32bit.1/arch/ia64/kernel/ivt.S 2.5.60-32bit.2/arch/ia64/kernel/ivt.S
--- 2.5.60-32bit.1/arch/ia64/kernel/ivt.S       2003-02-11 09:39:11.000000000 +1100

        alloc r15=ar.pfs,0,0,6,0        // must first in an insn group
        ;;
        ld4 r8=[r14],8          // r8 == eax (syscall number)
-       mov r15=230             // number of entries in ia32 system call table
+       mov r15=250             // number of entries in ia32 system call table
        ;;
        cmp.ltu.unc p6,p7=r8,r15
        ld4 out1=[r14],8        // r9 == ecx
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

2. Video card for Linux/VideoConf.

3. [COMPAT] compat_sys_futex 1/7 generic

4. adapter failover on standalone machine ???

5. [COMPAT] compat_sys_futex 1/3 generic, parisc, ppc64, s390x and x86_64

6. Diamond Stealth 32 Xconfig?

7. [COMPAT] compat_sys_futex 6/7 sparc64

8. Assertion Failure in Compilat

9. [COMPAT] compat_sys_futex 3/7 parisc

10. [COMPAT] compat_sys_futex 5/7 s390x

11. [COMPAT] compat_sys_futex 3/3 sparc64

12. [COMPAT] compat_sys_futex 7/7 x86_64

13. [COMPAT] compat_sys_futex 4/7 ppc64