summaryrefslogtreecommitdiff
path: root/klibc/klibc/arch/ia64/syscall.S
blob: e3f264c0e4bac77e7fe79c4fd371e01f8b987f7b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#
# arch/ia64/syscall.S
#

#include <asm/unistd.h>
	
	.text
	.align	32
	.proc	__syscall_error
	.globl	__syscall_error
__syscall_error:
	addl	r2 = @ltoffx(errno),gp
	;;
	ld8.mov	r3 = [r2],errno
	;;
	st4	[r3] = r8
	mov	r8 = -1
	br.ret.sptk.many b0
	.size	__syscall_error, .-__syscall_error
	.endp	__syscall_error