| // Copyright 2014 The Go Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style |
| // license that can be found in the LICENSE file. |
| #include "../runtime/syscall_nacl.h" |
| // System call support for ARM, Native Client |
| #define NACL_SYSCALL(code) \ |
| MOVW $(0x10000 + ((code)<<5)), R8; BL (R8) |
| #define NACL_SYSJMP(code) \ |
| MOVW $(0x10000 + ((code)<<5)), R8; B (R8) |
| TEXT ·Syscall(SB),NOSPLIT,$0-28 |
| BL runtime·entersyscall(SB) |
| // more args would use R3, and then stack. |
| BL runtime·exitsyscall(SB) |
| BL runtime·exitsyscall(SB) |