Allow larger initrd images

This commit is contained in:
Justin C. Miller
2019-03-25 00:14:20 -07:00
parent ed3f9410a6
commit 39baec852b
3 changed files with 72 additions and 41 deletions

View File

@@ -3,6 +3,7 @@ mymessage:
resq 1024
extern main
extern exit
section .text
global getpid
@@ -38,16 +39,6 @@ sleep:
pop rbp
ret
__localexit:
push rbp
mov rbp, rsp
mov rax, 9 ; exit syscall
syscall
jmp __localexit ; shouldn't get here
global _start
_start:
xor rbp, rbp ; Sentinel rbp
@@ -60,4 +51,4 @@ _start:
call main
mov rdi, rax
call __localexit
call exit