Skip to content
This repository has been archived by the owner on Sep 5, 2023. It is now read-only.

Commit

Permalink
quick fix for weak syscalls with number > 255
Browse files Browse the repository at this point in the history
  • Loading branch information
leitner committed Mar 6, 2017
1 parent 601bd10 commit b3547d7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions i386/syscalls.h
Expand Up @@ -391,8 +391,13 @@ wsym: ; \
.type sym,@function; \
.global sym; \
sym: \
.ifle __NR_##name-255; \
movb $__NR_##name,%al; \
jmp __unified_syscall; \
.else; \
movw $__NR_##name,%ax; \
jmp __unified_syscall_256; \
.endif; \
.Lend##sym: ; \
.size sym,.Lend##sym-sym

Expand Down

0 comments on commit b3547d7

Please sign in to comment.