diff options
Diffstat (limited to 'src/u_write.S')
-rw-r--r-- | src/u_write.S | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/u_write.S b/src/u_write.S new file mode 100644 index 0000000..efd7b9c --- /dev/null +++ b/src/u_write.S @@ -0,0 +1,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 |