asm_linux_s390x.s raw

   1  // Copyright 2016 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 linux && s390x && gc
   6  
   7  #include "textflag.h"
   8  
   9  //
  10  // System calls for s390x, 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-56
  17  	BR	syscall·Syscall(SB)
  18  
  19  TEXT ·Syscall6(SB),NOSPLIT,$0-80
  20  	BR	syscall·Syscall6(SB)
  21  
  22  TEXT ·SyscallNoError(SB),NOSPLIT,$0-48
  23  	BL	runtime·entersyscall(SB)
  24  	MOVD	a1+8(FP), R2
  25  	MOVD	a2+16(FP), R3
  26  	MOVD	a3+24(FP), R4
  27  	MOVD	$0, R5
  28  	MOVD	$0, R6
  29  	MOVD	$0, R7
  30  	MOVD	trap+0(FP), R1	// syscall entry
  31  	SYSCALL
  32  	MOVD	R2, r1+32(FP)
  33  	MOVD	R3, r2+40(FP)
  34  	BL	runtime·exitsyscall(SB)
  35  	RET
  36  
  37  TEXT ·RawSyscall(SB),NOSPLIT,$0-56
  38  	BR	syscall·RawSyscall(SB)
  39  
  40  TEXT ·RawSyscall6(SB),NOSPLIT,$0-80
  41  	BR	syscall·RawSyscall6(SB)
  42  
  43  TEXT ·RawSyscallNoError(SB),NOSPLIT,$0-48
  44  	MOVD	a1+8(FP), R2
  45  	MOVD	a2+16(FP), R3
  46  	MOVD	a3+24(FP), R4
  47  	MOVD	$0, R5
  48  	MOVD	$0, R6
  49  	MOVD	$0, R7
  50  	MOVD	trap+0(FP), R1	// syscall entry
  51  	SYSCALL
  52  	MOVD	R2, r1+32(FP)
  53  	MOVD	R3, r2+40(FP)
  54  	RET
  55