Differences From Artifact [3c036595d7]:
- File kcore/boot.rt.x86.lin.64.s — part of check-in [f0f16493ca] at 2019-08-21 03:44:37 on branch trunk — make crt behave as a C runtime launcher should; comment code thoroughly (user: lexi, size: 1906) [annotate] [blame] [check-ins using]
- File mod/kcore/boot.rt.x86.lin.64.s — part of check-in [14172a910a] at 2019-08-21 06:00:24 on branch trunk — move modules to a subdirectory in order to keep the directory tree organized and make room for OS-specific build files (user: lexi, size: 1906) [annotate] [blame] [check-ins using]
To Artifact [a74c88489c]:
- File mod/kcore/boot.rt.x86.lin.64.s — part of check-in [e42b590b45] at 2019-08-24 23:02:13 on branch trunk — stop attempting to auto-detect system constants during build process, and maintain os/arch-specific tables instead (user: lexi, size: 1883) [annotate] [blame] [check-ins using]
1 1 ; vim: ft=nasm 2 2 bits 64 3 -%include "../arch/posix/x86.lin.64.s" 3 +%include "syscall.s" 4 4 global _start:function 5 5 extern _boot 6 6 extern entry 7 7 8 8 _start: 9 9 mov rbp, 0 ; zero the stack base ptr. 10 10 ; attempted fix for a difficult-to- ................................................................................ 57 57 ; regardless of the size of the 58 58 ; return value of main(), _boot always 59 59 ; returns the system word length. 60 60 61 61 mov sys.reg.1, sys.reg.ret ; fill in 62 62 ; the return value as exit's argument 63 63 64 - mov sys.reg.0, sys.exit ; set %rax to 64 + mov sys.reg.0, 60 ; set %rax to 65 65 ; the syscall number of exit 66 66 67 67 sys.call ; invoke the kernel