Changeset af9dd1e in mainline
- Timestamp:
- 2016-04-27T19:48:40Z (9 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- b0e0140
- Parents:
- 1a5eca4
- Files:
-
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
abi/include/abi/syscall.h
r1a5eca4 raf9dd1e 38 38 typedef enum { 39 39 SYS_KIO = 0, 40 SYS_TLS_SET = 1, /* Hardcoded for AMD64, IA-32 (fibril.S in uspace) */41 40 42 41 SYS_THREAD_CREATE, -
contrib/arch/kernel/kernel.adl
r1a5eca4 raf9dd1e 21 21 ?sys_debug_disable_console 22 22 )* 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*30 23 }; 31 24 -
contrib/arch/uspace/lib/libc/protocol
r1a5eca4 raf9dd1e 2 2 ( 3 3 !sys_kio.sys_kio + 4 !sys_tls.sys_tls_set +5 4 !sys_thread.sys_thread_create + 6 5 !sys_thread.sys_thread_get_id + -
kernel/arch/abs32le/src/abs32le.c
r1a5eca4 raf9dd1e 85 85 } 86 86 87 sysarg_t sys_tls_set(uintptr_t addr)88 {89 return EOK;90 }91 92 87 /** Construct function pointer 93 88 * -
kernel/arch/amd64/src/amd64.c
r1a5eca4 raf9dd1e 268 268 } 269 269 270 /** Set thread-local-storage pointer271 *272 * TLS pointer is set in FS register. Unfortunately the 64-bit273 * 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 283 270 /** Construct function pointer 284 271 * -
kernel/arch/arm32/src/dummy.S
r1a5eca4 raf9dd1e 38 38 mov pc, lr 39 39 FUNCTION_END(asm_delay_loop) 40 41 # not used on ARM42 FUNCTION_BEGIN(sys_tls_set)43 FUNCTION_BEGIN(dummy)44 mov pc, lr45 FUNCTION_END(dummy)46 FUNCTION_END(sys_tls_set)47 -
kernel/arch/ia32/src/ia32.c
r1a5eca4 raf9dd1e 221 221 } 222 222 223 /** Set thread-local-storage pointer224 *225 * TLS pointer is set in GS register. That means, the GS contains226 * 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 233 223 /** Construct function pointer 234 224 * -
kernel/arch/ia64/src/ia64.c
r1a5eca4 raf9dd1e 250 250 } 251 251 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 261 252 void arch_reboot(void) 262 253 { -
kernel/arch/mips32/src/mips32.c
r1a5eca4 raf9dd1e 187 187 } 188 188 189 /** Set thread-local-storage pointer190 *191 * We have it currently in K1, it is192 * possible to have it separately in the future.193 */194 sysarg_t sys_tls_set(uintptr_t addr)195 {196 return EOK;197 }198 199 189 void arch_reboot(void) 200 190 { -
kernel/arch/ppc32/src/dummy.S
r1a5eca4 raf9dd1e 31 31 .text 32 32 33 FUNCTION_BEGIN(sys_tls_set)34 b sys_tls_set35 FUNCTION_END(sys_tls_set)36 37 33 FUNCTION_BEGIN(asm_delay_loop) 38 34 blr -
kernel/arch/sparc32/src/sparc32.c
r1a5eca4 raf9dd1e 113 113 } 114 114 115 sysarg_t sys_tls_set(uintptr_t addr)116 {117 return EOK;118 }119 120 115 /** Construct function pointer 121 116 * -
kernel/arch/sparc64/src/dummy.S
r1a5eca4 raf9dd1e 32 32 33 33 FUNCTION_BEGIN(cpu_sleep) 34 FUNCTION_BEGIN(sys_tls_set)35 34 retl 36 35 nop 37 36 FUNCTION_END(cpu_sleep) 38 FUNCTION_END(sys_tls_set)39 37 40 38 FUNCTION_BEGIN(cpu_halt) -
kernel/generic/include/syscall/syscall.h
r1a5eca4 raf9dd1e 45 45 extern sysarg_t syscall_handler(sysarg_t, sysarg_t, sysarg_t, sysarg_t, 46 46 sysarg_t, sysarg_t, sysarg_t); 47 extern sysarg_t sys_tls_set(uintptr_t);48 47 49 48 #endif -
kernel/generic/src/syscall/syscall.c
r1a5eca4 raf9dd1e 124 124 /* System management syscalls. */ 125 125 (syshandler_t) sys_kio, 126 (syshandler_t) sys_tls_set,127 126 128 127 /* Thread and task related syscalls. */ -
uspace/app/trace/syscalls.c
r1a5eca4 raf9dd1e 39 39 const sc_desc_t syscall_desc[] = { 40 40 [SYS_KIO] ={ "kio", 3, V_INT_ERRNO }, 41 [SYS_TLS_SET] = { "tls_set", 1, V_ERRNO },42 41 43 42 [SYS_THREAD_CREATE] = { "thread_create", 3, V_ERRNO },
Note:
See TracChangeset
for help on using the changeset viewer.