Commit a6cb0530 authored by Shenghou Ma's avatar Shenghou Ma Committed by Minux Ma

syscall: fix nacl builds

Please see golang.org/cl/2588 for reasons behind the name change.
We also need NO_LOCAL_POINTERS for assembly function with non-zero
local frame size.

Change-Id: Iac60aa7e76f4c2ece3726e28878fd539bfebf7a4
Reviewed-on: https://go-review.googlesource.com/2589Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
parent 654297cb
...@@ -16,7 +16,8 @@ ...@@ -16,7 +16,8 @@
#define NACL_SYSJMP(code) \ #define NACL_SYSJMP(code) \
MOVL $(0x10000 + ((code)<<5)), AX; JMP AX MOVL $(0x10000 + ((code)<<5)), AX; JMP AX
TEXT syscall·Syscall(SB),NOSPLIT,$12-28 TEXT ·Syscall(SB),NOSPLIT,$12-28
NO_LOCAL_POINTERS
CALL runtime·entersyscall(SB) CALL runtime·entersyscall(SB)
MOVL trap+0(FP), AX MOVL trap+0(FP), AX
MOVL a1+4(FP), BX MOVL a1+4(FP), BX
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
#define NACL_SYSJMP(code) \ #define NACL_SYSJMP(code) \
MOVL $(0x10000 + ((code)<<5)), AX; JMP AX MOVL $(0x10000 + ((code)<<5)), AX; JMP AX
TEXT syscall·Syscall(SB),NOSPLIT,$0-28 TEXT ·Syscall(SB),NOSPLIT,$0-28
CALL runtime·entersyscall(SB) CALL runtime·entersyscall(SB)
MOVL trap+0(FP), AX MOVL trap+0(FP), AX
MOVL a1+4(FP), DI MOVL a1+4(FP), DI
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
#define NACL_SYSJMP(code) \ #define NACL_SYSJMP(code) \
MOVW $(0x10000 + ((code)<<5)), R8; B (R8) MOVW $(0x10000 + ((code)<<5)), R8; B (R8)
TEXT syscall·Syscall(SB),NOSPLIT,$0-28 TEXT ·Syscall(SB),NOSPLIT,$0-28
BL runtime·entersyscall(SB) BL runtime·entersyscall(SB)
MOVW trap+0(FP), R8 MOVW trap+0(FP), R8
MOVW a1+4(FP), R0 MOVW a1+4(FP), R0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment