syscall.sh / csky / set_thread_area
set_thread_area
manipulate thread-local storage information
sys_set_thread_area(unsigned long addr)
| number | 244 (0xf4) |
|---|---|
| abi | csky |
| entry point | sys_set_thread_area |
| since | Linux 4.20 |
| man page | set_thread_area(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r7 | 244, the syscall number |
a0 | unsigned long addr |
a0 | the return value |
Then run trap 0 to enter the kernel.
Same syscall on other architectures
Get this as JSON: https://api.syscall.sh/v2/syscalls/csky/set_thread_area