diff options
| author | Russ Cox <rsc@golang.org> | 2011-03-23 11:31:42 -0400 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2011-03-23 11:31:42 -0400 |
| commit | 8dee872963ca0260c3b941b54cf5ac2cd583fd02 (patch) | |
| tree | 0d79b4079dff73bc5e4eec1f88f6a0a7d55c9e14 /src/pkg/runtime/linux/arm/sys.s | |
| parent | ccdbb8a6c2bf8a058d5cd8dd94374d02e584e39a (diff) | |
| download | go-8dee872963ca0260c3b941b54cf5ac2cd583fd02.tar.xz | |
runtime: os-specific types and code for setitimer
R=r
CC=golang-dev
https://golang.org/cl/4273097
Diffstat (limited to 'src/pkg/runtime/linux/arm/sys.s')
| -rw-r--r-- | src/pkg/runtime/linux/arm/sys.s | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/pkg/runtime/linux/arm/sys.s b/src/pkg/runtime/linux/arm/sys.s index 9daf9c2e4d..2b01f0cbb3 100644 --- a/src/pkg/runtime/linux/arm/sys.s +++ b/src/pkg/runtime/linux/arm/sys.s @@ -26,6 +26,7 @@ #define SYS_futex (SYS_BASE + 240) #define SYS_exit_group (SYS_BASE + 248) #define SYS_munmap (SYS_BASE + 91) +#define SYS_setitimer (SYS_BASE + 104) #define ARM_BASE (SYS_BASE + 0x0f0000) #define SYS_ARM_cacheflush (ARM_BASE + 2) @@ -72,6 +73,14 @@ TEXT runtime·munmap(SB),7,$0 SWI $0 RET +TEXT runtime·getitimer(SB),7,$0 + MOVW 0(FP), R0 + MOVW 4(FP), R1 + MOWW 8(FP), R2 + MOVW $SYS_setitimer, R7 + SWI $0 + RET + TEXT runtime·gettime(SB),7,$32 /* dummy version - return 0,0 */ MOVW $0, R1 |
