source: patches/linux-libc-headers-2.6.12.0-mips_tls-1.patch@ 54d004a8

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 54d004a8 was 69cde8d, checked in by Jim Gifford <clfs@…>, 19 years ago

Added: All patches needed for the book.

  • Property mode set to 100644
File size: 3.2 KB
  • linux-libc-headers-2.6.12.0

    Submitted By: Jim Gifford (patches at jg555 dot com)
    Date: 2005-09-12
    Initial Package Version: 2.6.12.0
    Origin: http://www.uclibc.org/cgi-bin/viewcvs.cgi/trunk/buildroot/toolchain/kernel-headers/linux-libc-headers-2.6.12.0-mips-nptl.patch?rev=11104&view=auto
    Upstream Status: Unknown
    Description: Adds TLS Support to Kernel Headers for MIPS
     
    diff -Naur linux-libc-headers-2.6.12.0.orig/include/asm-mips/inst.h linux-libc-headers-2.6.12.0/include/asm-mips/inst.h
    old new  
    2828        sdl_op, sdr_op, swr_op, cache_op,
    2929        ll_op, lwc1_op, lwc2_op, pref_op,
    3030        lld_op, ldc1_op, ldc2_op, ld_op,
    31         sc_op, swc1_op, swc2_op, major_3b_op, /* Opcode 0x3b is unused */
     31        sc_op, swc1_op, swc2_op, rdhwr_op,
    3232        scd_op, sdc1_op, sdc2_op, sd_op
    3333};
    3434
     
    6262        spimi_op, unused_rt_op_0x05, unused_rt_op_0x06, unused_rt_op_0x07,
    6363        tgei_op, tgeiu_op, tlti_op, tltiu_op,
    6464        teqi_op, unused_0x0d_rt_op, tnei_op, unused_0x0f_rt_op,
    65         bltzal_op, bgezal_op, bltzall_op, bgezall_op
    66         /*
    67          * The others (0x14 - 0x1f) are unused.
    68          */
     65        bltzal_op, bgezal_op, bltzall_op, bgezall_op,
     66        rt_op_0x14, rt_op_0x15, rt_op_0x16, rt_op_0x17,
     67        rt_op_0x18, rt_op_0x19, rt_op_0x1a, rt_op_0x1b,
     68        bposge32_op, rt_op_0x1d, rt_op_0x1e, rt_op_0x1f
    6969};
    7070
    7171/*
  • linux-libc-headers-2.6.12.0

    diff -Naur linux-libc-headers-2.6.12.0.orig/include/asm-mips/unistd.h linux-libc-headers-2.6.12.0/include/asm-mips/unistd.h
    old new  
    303303#define __NR_add_key                    (__NR_Linux + 280)
    304304#define __NR_request_key                (__NR_Linux + 281)
    305305#define __NR_keyctl                     (__NR_Linux + 282)
     306#define __NR_set_thread_area            (__NR_Linux + 283)
    306307
    307308/*
    308309 * Offset of the last Linux o32 flavoured syscall
    309310 */
    310 #define __NR_Linux_syscalls             282
     311#define __NR_Linux_syscalls             283
    311312
    312313#endif /* _MIPS_SIM == _MIPS_SIM_ABI32 */
    313314
    314315#define __NR_O32_Linux                  4000
    315 #define __NR_O32_Linux_syscalls         282
     316#define __NR_O32_Linux_syscalls         283
    316317
    317318#if _MIPS_SIM == _MIPS_SIM_ABI64
    318319
     
    562563#define __NR_add_key                    (__NR_Linux + 239)
    563564#define __NR_request_key                (__NR_Linux + 240)
    564565#define __NR_keyctl                     (__NR_Linux + 241)
     566#define __NR_set_thread_area            (__NR_Linux + 242)
    565567
    566568/*
    567569 * Offset of the last Linux 64-bit flavoured syscall
    568570 */
    569 #define __NR_Linux_syscalls             241
     571#define __NR_Linux_syscalls             242
    570572
    571573#endif /* _MIPS_SIM == _MIPS_SIM_ABI64 */
    572574
    573575#define __NR_64_Linux                   5000
    574 #define __NR_64_Linux_syscalls          241
     576#define __NR_64_Linux_syscalls          242
    575577
    576578#if _MIPS_SIM == _MIPS_SIM_NABI32
    577579
     
    825827#define __NR_add_key                    (__NR_Linux + 243)
    826828#define __NR_request_key                (__NR_Linux + 244)
    827829#define __NR_keyctl                     (__NR_Linux + 245)
     830#define __NR_set_thread_area            (__NR_Linux + 246)
    828831
    829832/*
    830833 * Offset of the last N32 flavoured syscall
    831834 */
    832 #define __NR_Linux_syscalls             245
     835#define __NR_Linux_syscalls             246
    833836
    834837#endif /* _MIPS_SIM == _MIPS_SIM_NABI32 */
    835838
    836839#define __NR_N32_Linux                  6000
    837 #define __NR_N32_Linux_syscalls         245
     840#define __NR_N32_Linux_syscalls         246
    838841
    839842#ifndef __ASSEMBLY__
    840843
Note: See TracBrowser for help on using the repository browser.