Differences From Artifact [4c49f79d26]:
- File kcore/exit.fn.x86.lin.64.s — part of check-in [e794c5edef] at 2019-06-29 09:31:50 on branch trunk — add a bunch of code, port the header mechanism to gpp; add a fuckton of definitions and compatibility header code; notably, add core function kstop and x86.lin.{32,64} impl. update docs accordingly (user: lexi, size: 223) [annotate] [blame] [check-ins using]
To Artifact [c7202f2e83]:
- File kcore/exit.fn.x86.lin.64.s — part of check-in [37b0cfaa06] at 2019-08-18 17:56:41 on branch trunk — revamp arch/ makefile, add generic syscall fn on posix, rewrite kiosend() to use k_platform_syscall instead of k_platform_write (user: lexi, size: 232) [annotate] [blame] [check-ins using]
- File legacy/exit.fn.x86.lin.64.s — part of check-in [f9bf0d662b] at 2019-08-20 02:03:37 on branch trunk — partially unfuck x86-32, correct major error in syscall ABI (user: lexi, size: 232) [annotate] [blame] [check-ins using]
1 2 3 4 5 6 7 8 9 10 11 |
bits 64 %include "../arch/x86.lin.64.s" %include "../arch/x86.cdecl.64.s" ; vim: ft=nasm global kio_posix_exit kio_posix_exit: mov sys.reg.1, ccall.reg.0 ;nop - rdi → rdi mov sys.reg.0, sys.exit sys.call ; no return |
| |
1 2 3 4 5 6 7 8 9 10 11 |
bits 64
%include "../arch/x86.lin.64.s"
%include "../arch/x86.cdecl.64.s"
; vim: ft=nasm
global kio_posix_exit:function
kio_posix_exit:
mov sys.reg.1, ccall.reg.0 ;nop - rdi → rdi
mov sys.reg.0, sys.exit
sys.call
; no return
|