mirror of
https://github.com/justinian/jsix.git
synced 2025-12-10 00:14:32 -08:00
Simple ELF program loader
Now any initrd file is treated like a program image and passed to the loader to load as a process. Very rudimentary elf loading just allocates pages, copies sections, and sets the ELF's entrypoint as the RIP to iretq to.
This commit is contained in:
@@ -2,7 +2,6 @@ global _start
|
||||
_start:
|
||||
xor rbp, rbp ; Sentinel rbp
|
||||
|
||||
pop rsi ; My PID
|
||||
mov rdi, 0 ; DEBUG syscall
|
||||
|
||||
.loop:
|
||||
|
||||
Reference in New Issue
Block a user