usb-ks

USB Killswitch
git clone git://git.laack.co/usb-ks.git
Log | Files | Refs | README | LICENSE

asm_linux_ppc64x.s (962B)


      1 // Copyright 2014 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 && (ppc64 || ppc64le) && gc
      6 // +build linux
      7 // +build ppc64 ppc64le
      8 // +build gc
      9 
     10 #include "textflag.h"
     11 
     12 //
     13 // System calls for ppc64, Linux
     14 //
     15 
     16 // Just jump to package syscall's implementation for all these functions.
     17 // The runtime may know about them.
     18 
     19 TEXT ·SyscallNoError(SB),NOSPLIT,$0-48
     20 	BL	runtime·entersyscall(SB)
     21 	MOVD	a1+8(FP), R3
     22 	MOVD	a2+16(FP), R4
     23 	MOVD	a3+24(FP), R5
     24 	MOVD	R0, R6
     25 	MOVD	R0, R7
     26 	MOVD	R0, R8
     27 	MOVD	trap+0(FP), R9	// syscall entry
     28 	SYSCALL R9
     29 	MOVD	R3, r1+32(FP)
     30 	MOVD	R4, r2+40(FP)
     31 	BL	runtime·exitsyscall(SB)
     32 	RET
     33 
     34 TEXT ·RawSyscallNoError(SB),NOSPLIT,$0-48
     35 	MOVD	a1+8(FP), R3
     36 	MOVD	a2+16(FP), R4
     37 	MOVD	a3+24(FP), R5
     38 	MOVD	R0, R6
     39 	MOVD	R0, R7
     40 	MOVD	R0, R8
     41 	MOVD	trap+0(FP), R9	// syscall entry
     42 	SYSCALL R9
     43 	MOVD	R3, r1+32(FP)
     44 	MOVD	R4, r2+40(FP)
     45 	RET