aboutsummaryrefslogtreecommitdiffstats
path: root/src/u_write.S
blob: efd7b9c134dd851a816a03739d63fa3a2a5d679f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
.text
.globl u_write

u_write:
	movq	$0x4, %rax
	syscall
	movq	%rax, %rcx
	jc		u_err
	movq	%rcx, %rax
	retq

u_err:
	movq	$0xffffffffffffffff, %rax
	retq