diff options
Diffstat (limited to 'src/runtime/sys_linux_mips64x.s')
| -rw-r--r-- | src/runtime/sys_linux_mips64x.s | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/runtime/sys_linux_mips64x.s b/src/runtime/sys_linux_mips64x.s index a4bcc72dd8..27de7b0901 100644 --- a/src/runtime/sys_linux_mips64x.s +++ b/src/runtime/sys_linux_mips64x.s @@ -45,6 +45,7 @@ #define SYS_epoll_wait 5209 #define SYS_clock_gettime 5222 #define SYS_epoll_create1 5285 +#define SYS_brk 5012 TEXT runtime·exit(SB),NOSPLIT,$-8-4 MOVW code+0(FP), R4 @@ -426,3 +427,12 @@ TEXT runtime·closeonexec(SB),NOSPLIT,$-8 MOVV $SYS_fcntl, R2 SYSCALL RET + +// func sbrk0() uintptr +TEXT runtime·sbrk0(SB),NOSPLIT,$-8-8 + // Implemented as brk(NULL). + MOVV $0, R4 + MOVV $SYS_brk, R2 + SYSCALL + MOVV R2, ret+0(FP) + RET |
