diff options
| author | Tobias Klauser <tklauser@distanz.ch> | 2018-02-13 17:07:54 +0100 |
|---|---|---|
| committer | Tobias Klauser <tobias.klauser@gmail.com> | 2018-02-14 08:48:44 +0000 |
| commit | 0e1bcfc63886315fe16a958b03b4174d5cfa0cfa (patch) | |
| tree | 35a9af6da66f7a3e89c3a3b08aef4ecbdfcee1f3 /src/runtime/sys_linux_mips64x.s | |
| parent | 32a0a1d37c87bbbc5f9650da9a4b7262f3162ae4 (diff) | |
| download | go-0e1bcfc63886315fe16a958b03b4174d5cfa0cfa.tar.xz | |
runtime: add symbol for AT_FDCWD on Linux amd64 and mips64x
Also order the syscall number list by numerically for mips64x.
Follow-up for CL 92895.
Change-Id: I5f01f8c626132a06160997fce8a2aef0c486bb1c
Reviewed-on: https://go-review.googlesource.com/93616
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Austin Clements <austin@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/runtime/sys_linux_mips64x.s')
| -rw-r--r-- | src/runtime/sys_linux_mips64x.s | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/runtime/sys_linux_mips64x.s b/src/runtime/sys_linux_mips64x.s index 50e103bb63..ba55526c26 100644 --- a/src/runtime/sys_linux_mips64x.s +++ b/src/runtime/sys_linux_mips64x.s @@ -13,10 +13,11 @@ #include "go_tls.h" #include "textflag.h" +#define AT_FDCWD -100 + #define SYS_exit 5058 #define SYS_read 5000 #define SYS_write 5001 -#define SYS_openat 5247 #define SYS_close 5003 #define SYS_getpid 5038 #define SYS_kill 5060 @@ -42,6 +43,7 @@ #define SYS_exit_group 5205 #define SYS_epoll_create 5207 #define SYS_epoll_ctl 5208 +#define SYS_openat 5247 #define SYS_epoll_pwait 5272 #define SYS_clock_gettime 5222 #define SYS_epoll_create1 5285 @@ -68,7 +70,7 @@ TEXT runtime·exitThread(SB),NOSPLIT|NOFRAME,$0-8 TEXT runtime·open(SB),NOSPLIT|NOFRAME,$0-20 // This uses openat instead of open, because Android O blocks open. - MOVW $-100, R4 // AT_FDCWD, so this acts like open + MOVW $AT_FDCWD, R4 // AT_FDCWD, so this acts like open MOVV name+0(FP), R5 MOVW mode+8(FP), R6 MOVW perm+12(FP), R7 |
