1
0
mirror of https://github.com/golang/go synced 2024-11-26 06:17:57 -07:00

runtime: remove unused getrlimit on linux/riscv64

Follow CL 94775 and CL 93655 which removed the (commented-out) usage
of this function on other platforms.

Change-Id: I28e0569d8531d0c09f3caefa7c4eb54fb5bd8a33
Reviewed-on: https://go-review.googlesource.com/c/go/+/334429
Trust: Tobias Klauser <tobias.klauser@gmail.com>
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
Tobias Klauser 2021-07-13 23:12:18 +02:00 committed by Tobias Klauser
parent 57c115e1f6
commit 7aa57a9687

View File

@ -25,7 +25,6 @@
#define SYS_fcntl 25 #define SYS_fcntl 25
#define SYS_futex 98 #define SYS_futex 98
#define SYS_getpid 172 #define SYS_getpid 172
#define SYS_getrlimit 163
#define SYS_gettid 178 #define SYS_gettid 178
#define SYS_gettimeofday 169 #define SYS_gettimeofday 169
#define SYS_kill 129 #define SYS_kill 129
@ -132,15 +131,6 @@ TEXT runtime·pipe2(SB),NOSPLIT|NOFRAME,$0-20
MOVW A0, errno+16(FP) MOVW A0, errno+16(FP)
RET RET
// func getrlimit(kind int32, limit unsafe.Pointer) int32
TEXT runtime·getrlimit(SB),NOSPLIT|NOFRAME,$0-20
MOVW kind+0(FP), A0
MOV limit+8(FP), A1
MOV $SYS_getrlimit, A7
ECALL
MOVW A0, ret+16(FP)
RET
// func usleep(usec uint32) // func usleep(usec uint32)
TEXT runtime·usleep(SB),NOSPLIT,$24-4 TEXT runtime·usleep(SB),NOSPLIT,$24-4
MOVWU usec+0(FP), A0 MOVWU usec+0(FP), A0