Index: src/pkg/runtime/linux/arm/sys.s |
=================================================================== |
--- a/src/pkg/runtime/linux/arm/sys.s |
+++ b/src/pkg/runtime/linux/arm/sys.s |
@@ -25,6 +25,7 @@ |
#define SYS_gettid (SYS_BASE + 224) |
#define SYS_futex (SYS_BASE + 240) |
#define SYS_exit_group (SYS_BASE + 248) |
+#define SYS_munmap (SYS_BASE + 91) |
#define ARM_BASE (SYS_BASE + 0x0f0000) |
#define SYS_ARM_cacheflush (ARM_BASE + 2) |
@@ -64,6 +65,13 @@ |
SWI $0 |
RET |
+TEXT ·mmap(SB),7,$0 |
+ MOVW 0(FP), R0 |
+ MOVW 4(FP), R1 |
+ MOVW $SYS_munmap, R7 |
+ SWI $0 |
+ RET |
+ |
TEXT gettime(SB),7,$32 |
/* dummy version - return 0,0 */ |
MOVW $0, R1 |