summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
4f69594)
the kernel does not properly clear the upper bits of the syscall
argument, so we have to do it before the syscall.
.global __set_thread_area
.type __set_thread_area,@function
__set_thread_area:
.global __set_thread_area
.type __set_thread_area,@function
__set_thread_area:
- mov %rdi,%rsi /* shift for syscall */
+ mov %edi,%esi /* shift for syscall */
movl $0x1002,%edi /* SET_FS register */
movl $0x4000009e,%eax /* set fs segment to */
syscall /* arch_prctl(SET_FS, arg)*/
movl $0x1002,%edi /* SET_FS register */
movl $0x4000009e,%eax /* set fs segment to */
syscall /* arch_prctl(SET_FS, arg)*/