Commit d166d162 authored by Christopher Wedgwood's avatar Christopher Wedgwood Committed by Russ Cox

runtime: Remove unused runtime.write from linux/amd64

Also minor reformatting.

R=rsc
CC=golang-dev
https://golang.org/cl/845041
parent 83727ccf
...@@ -10,11 +10,11 @@ ...@@ -10,11 +10,11 @@
TEXT exit(SB),7,$0-8 TEXT exit(SB),7,$0-8
MOVL 8(SP), DI MOVL 8(SP), DI
MOVL $231, AX // exitgroup - force all os threads to exi MOVL $231, AX // exitgroup - force all os threads to exit
SYSCALL SYSCALL
RET RET
TEXT exit1(SB),7,$0-8 TEXT exit1(SB),7,$0-8
MOVL 8(SP), DI MOVL 8(SP), DI
MOVL $60, AX // exit - exit the current os thread MOVL $60, AX // exit - exit the current os thread
SYSCALL SYSCALL
...@@ -36,15 +36,7 @@ TEXT write(SB),7,$0-24 ...@@ -36,15 +36,7 @@ TEXT write(SB),7,$0-24
SYSCALL SYSCALL
RET RET
TEXT ·write(SB),7,$0-24 TEXT gettime(SB), 7, $32
MOVL 8(SP), DI
MOVQ 16(SP), SI
MOVL 24(SP), DX
MOVL $1, AX // syscall entry
SYSCALL
RET
TEXT gettime(SB), 7, $32
LEAQ 8(SP), DI LEAQ 8(SP), DI
MOVQ $0, SI MOVQ $0, SI
MOVQ $0xffffffffff600000, AX MOVQ $0xffffffffff600000, AX
...@@ -76,10 +68,10 @@ TEXT sigtramp(SB),7,$24-16 ...@@ -76,10 +68,10 @@ TEXT sigtramp(SB),7,$24-16
CALL sighandler(SB) CALL sighandler(SB)
RET RET
TEXT sigignore(SB),7,$0 TEXT sigignore(SB),7,$0
RET RET
TEXT sigreturn(SB),7,$0 TEXT sigreturn(SB),7,$0
MOVL $15, AX // rt_sigreturn MOVL $15, AX // rt_sigreturn
SYSCALL SYSCALL
INT $3 // not reached INT $3 // not reached
...@@ -130,7 +122,7 @@ TEXT ·setcallerpc+0(SB),7,$0 ...@@ -130,7 +122,7 @@ TEXT ·setcallerpc+0(SB),7,$0
// int64 futex(int32 *uaddr, int32 op, int32 val, // int64 futex(int32 *uaddr, int32 op, int32 val,
// struct timespec *timeout, int32 *uaddr2, int32 val2); // struct timespec *timeout, int32 *uaddr2, int32 val2);
TEXT futex(SB),7,$0 TEXT futex(SB),7,$0
MOVQ 8(SP), DI MOVQ 8(SP), DI
MOVL 16(SP), SI MOVL 16(SP), SI
MOVL 20(SP), DX MOVL 20(SP), DX
...@@ -142,7 +134,7 @@ TEXT futex(SB),7,$0 ...@@ -142,7 +134,7 @@ TEXT futex(SB),7,$0
RET RET
// int64 clone(int32 flags, void *stack, M *m, G *g, void (*fn)(void)); // int64 clone(int32 flags, void *stack, M *m, G *g, void (*fn)(void));
TEXT clone(SB),7,$0 TEXT clone(SB),7,$0
MOVL flags+8(SP), DI MOVL flags+8(SP), DI
MOVQ stack+16(SP), SI MOVQ stack+16(SP), SI
...@@ -174,13 +166,13 @@ TEXT clone(SB),7,$0 ...@@ -174,13 +166,13 @@ TEXT clone(SB),7,$0
// Call fn // Call fn
CALL R12 CALL R12
// It shouldn't return. If it does, exi // It shouldn't return. If it does, exit
MOVL $111, DI MOVL $111, DI
MOVL $60, AX MOVL $60, AX
SYSCALL SYSCALL
JMP -3(PC) // keep exiting JMP -3(PC) // keep exiting
TEXT sigaltstack(SB),7,$-8 TEXT sigaltstack(SB),7,$-8
MOVQ new+8(SP), DI MOVQ new+8(SP), DI
MOVQ old+16(SP), SI MOVQ old+16(SP), SI
MOVQ $131, AX MOVQ $131, AX
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment