]> Cypherpunks.ru repositories - gostls13.git/commitdiff
runtime: remove unused getrlimit on linux/riscv64
authorTobias Klauser <tklauser@distanz.ch>
Tue, 13 Jul 2021 21:12:18 +0000 (23:12 +0200)
committerTobias Klauser <tobias.klauser@gmail.com>
Mon, 16 Aug 2021 07:22:02 +0000 (07:22 +0000)
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>
src/runtime/sys_linux_riscv64.s

index 2389f1cc182489971fb050fcc9209fbbd470e474..54b7a3f61c56d8823878998e0a40c03bbf583ddf 100644 (file)
@@ -25,7 +25,6 @@
 #define SYS_fcntl              25
 #define SYS_futex              98
 #define SYS_getpid             172
-#define SYS_getrlimit          163
 #define SYS_gettid             178
 #define SYS_gettimeofday       169
 #define SYS_kill               129
@@ -132,15 +131,6 @@ TEXT runtime·pipe2(SB),NOSPLIT|NOFRAME,$0-20
        MOVW    A0, errno+16(FP)
        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)
 TEXT runtime·usleep(SB),NOSPLIT,$24-4
        MOVWU   usec+0(FP), A0