commit | 84e34e076a4e25a17a1582636e2c2765c0ca51fb | [log] [tgz] |
---|---|---|
author | H. Peter Anvin <hpa@zytor.com> | Mon Jun 07 19:49:36 2004 +0000 |
committer | H. Peter Anvin <hpa@zytor.com> | Mon Jun 07 19:49:36 2004 +0000 |
tree | a9accff7ef25b1e4a7739a6d29aeb54f065e479d | |
parent | dc1da848eee27650d6a6a399a12b111c4c3c5aae [diff] |
Use %rip-relative addressing for errno.
diff --git a/klibc/arch/x86_64/syscall.S b/klibc/arch/x86_64/syscall.S index 6c473ec..f2c74ae 100644 --- a/klibc/arch/x86_64/syscall.S +++ b/klibc/arch/x86_64/syscall.S
@@ -19,7 +19,7 @@ # Error return, must set errno negl %eax - movl %eax,errno # errno is type int, so 32 bits + movl %eax,errno(%rip) # errno is type int, so 32 bits orq $-1,%rax # orq $-1 smaller than movq $-1 1: