Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset af9dd1e in mainline


Ignore:
Timestamp:
2016-04-27T19:48:40Z (5 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
master
Children:
b0e0140
Parents:
1a5eca4
Message:

Remove SYS_TLS_SET

Files:
15 edited

Legend:

Unmodified
Added
Removed
  • abi/include/abi/syscall.h

    r1a5eca4 raf9dd1e  
    3838typedef enum {
    3939        SYS_KIO = 0,
    40         SYS_TLS_SET = 1,  /* Hardcoded for AMD64, IA-32 (fibril.S in uspace) */
    4140       
    4241        SYS_THREAD_CREATE,
  • contrib/arch/kernel/kernel.adl

    r1a5eca4 raf9dd1e  
    2121                        ?sys_debug_disable_console
    2222                )*
    23 };
    24 
    25 interface sys_tls {
    26                 /* Set thread-local storage pointer (on architectures where kernel mode is required) */
    27                 sysarg_t sys_tls_set(sysarg_t addr);
    28         protocol:
    29                 ?sys_tls_set*
    3023};
    3124
  • contrib/arch/uspace/lib/libc/protocol

    r1a5eca4 raf9dd1e  
    22(
    33        !sys_kio.sys_kio +
    4         !sys_tls.sys_tls_set +
    54        !sys_thread.sys_thread_create +
    65        !sys_thread.sys_thread_get_id +
  • kernel/arch/abs32le/src/abs32le.c

    r1a5eca4 raf9dd1e  
    8585}
    8686
    87 sysarg_t sys_tls_set(uintptr_t addr)
    88 {
    89         return EOK;
    90 }
    91 
    9287/** Construct function pointer
    9388 *
  • kernel/arch/amd64/src/amd64.c

    r1a5eca4 raf9dd1e  
    268268}
    269269
    270 /** Set thread-local-storage pointer
    271  *
    272  * TLS pointer is set in FS register. Unfortunately the 64-bit
    273  * part can be set only in CPL0 mode.
    274  *
    275  * The specs say, that on %fs:0 there is stored contents of %fs register,
    276  * we need not to go to CPL0 to read it.
    277  */
    278 sysarg_t sys_tls_set(uintptr_t addr)
    279 {
    280         return EOK;
    281 }
    282 
    283270/** Construct function pointer
    284271 *
  • kernel/arch/arm32/src/dummy.S

    r1a5eca4 raf9dd1e  
    3838        mov     pc, lr
    3939FUNCTION_END(asm_delay_loop)
    40 
    41 # not used on ARM
    42 FUNCTION_BEGIN(sys_tls_set)
    43 FUNCTION_BEGIN(dummy)
    44         mov pc, lr
    45 FUNCTION_END(dummy)
    46 FUNCTION_END(sys_tls_set)
    47 
  • kernel/arch/ia32/src/ia32.c

    r1a5eca4 raf9dd1e  
    221221}
    222222
    223 /** Set thread-local-storage pointer
    224  *
    225  * TLS pointer is set in GS register. That means, the GS contains
    226  * selector, and the descriptor->base is the correct address.
    227  */
    228 sysarg_t sys_tls_set(uintptr_t addr)
    229 {
    230         return EOK;
    231 }
    232 
    233223/** Construct function pointer
    234224 *
  • kernel/arch/ia64/src/ia64.c

    r1a5eca4 raf9dd1e  
    250250}
    251251
    252 /** Set thread-local-storage pointer.
    253  *
    254  * We use r13 (a.k.a. tp) for this purpose.
    255  */
    256 sysarg_t sys_tls_set(uintptr_t addr)
    257 {
    258         return EOK;
    259 }
    260 
    261252void arch_reboot(void)
    262253{
  • kernel/arch/mips32/src/mips32.c

    r1a5eca4 raf9dd1e  
    187187}
    188188
    189 /** Set thread-local-storage pointer
    190  *
    191  * We have it currently in K1, it is
    192  * possible to have it separately in the future.
    193  */
    194 sysarg_t sys_tls_set(uintptr_t addr)
    195 {
    196         return EOK;
    197 }
    198 
    199189void arch_reboot(void)
    200190{
  • kernel/arch/ppc32/src/dummy.S

    r1a5eca4 raf9dd1e  
    3131.text
    3232
    33 FUNCTION_BEGIN(sys_tls_set)
    34         b sys_tls_set
    35 FUNCTION_END(sys_tls_set)
    36 
    3733FUNCTION_BEGIN(asm_delay_loop)
    3834        blr
  • kernel/arch/sparc32/src/sparc32.c

    r1a5eca4 raf9dd1e  
    113113}
    114114
    115 sysarg_t sys_tls_set(uintptr_t addr)
    116 {
    117         return EOK;
    118 }
    119 
    120115/** Construct function pointer
    121116 *
  • kernel/arch/sparc64/src/dummy.S

    r1a5eca4 raf9dd1e  
    3232
    3333FUNCTION_BEGIN(cpu_sleep)
    34 FUNCTION_BEGIN(sys_tls_set)
    3534        retl
    3635        nop
    3736FUNCTION_END(cpu_sleep)
    38 FUNCTION_END(sys_tls_set)
    3937
    4038FUNCTION_BEGIN(cpu_halt)
  • kernel/generic/include/syscall/syscall.h

    r1a5eca4 raf9dd1e  
    4545extern sysarg_t syscall_handler(sysarg_t, sysarg_t, sysarg_t, sysarg_t,
    4646    sysarg_t, sysarg_t, sysarg_t);
    47 extern sysarg_t sys_tls_set(uintptr_t);
    4847
    4948#endif
  • kernel/generic/src/syscall/syscall.c

    r1a5eca4 raf9dd1e  
    124124        /* System management syscalls. */
    125125        (syshandler_t) sys_kio,
    126         (syshandler_t) sys_tls_set,
    127126       
    128127        /* Thread and task related syscalls. */
  • uspace/app/trace/syscalls.c

    r1a5eca4 raf9dd1e  
    3939const sc_desc_t syscall_desc[] = {
    4040    [SYS_KIO] ={ "kio",                                 3,      V_INT_ERRNO },
    41     [SYS_TLS_SET] = { "tls_set",                        1,      V_ERRNO },
    4241
    4342    [SYS_THREAD_CREATE] = { "thread_create",            3,      V_ERRNO },
Note: See TracChangeset for help on using the changeset viewer.