Text file src/cmd/vendor/golang.org/x/sys/unix/asm_linux_arm.s

     1  // Copyright 2009 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  //go:build gc
     6  
     7  #include "textflag.h"
     8  
     9  //
    10  // System calls for arm, Linux
    11  //
    12  
    13  // Just jump to package syscall's implementation for all these functions.
    14  // The runtime may know about them.
    15  
    16  TEXT ·Syscall(SB),NOSPLIT,$0-28
    17  	B	syscall·Syscall(SB)
    18  
    19  TEXT ·Syscall6(SB),NOSPLIT,$0-40
    20  	B	syscall·Syscall6(SB)
    21  
    22  TEXT ·SyscallNoError(SB),NOSPLIT,$0-24
    23  	BL	runtime·entersyscall(SB)
    24  	MOVW	trap+0(FP), R7
    25  	MOVW	a1+4(FP), R0
    26  	MOVW	a2+8(FP), R1
    27  	MOVW	a3+12(FP), R2
    28  	MOVW	$0, R3
    29  	MOVW	$0, R4
    30  	MOVW	$0, R5
    31  	SWI	$0
    32  	MOVW	R0, r1+16(FP)
    33  	MOVW	$0, R0
    34  	MOVW	R0, r2+20(FP)
    35  	BL	runtime·exitsyscall(SB)
    36  	RET
    37  
    38  TEXT ·RawSyscall(SB),NOSPLIT,$0-28
    39  	B	syscall·RawSyscall(SB)
    40  
    41  TEXT ·RawSyscall6(SB),NOSPLIT,$0-40
    42  	B	syscall·RawSyscall6(SB)
    43  
    44  TEXT ·RawSyscallNoError(SB),NOSPLIT,$0-24
    45  	MOVW	trap+0(FP), R7	// syscall entry
    46  	MOVW	a1+4(FP), R0
    47  	MOVW	a2+8(FP), R1
    48  	MOVW	a3+12(FP), R2
    49  	SWI	$0
    50  	MOVW	R0, r1+16(FP)
    51  	MOVW	$0, R0
    52  	MOVW	R0, r2+20(FP)
    53  	RET
    54  
    55  TEXT ·seek(SB),NOSPLIT,$0-28
    56  	B	syscall·seek(SB)
    57  

View as plain text