start.asm now calls exit with a 0 exit code

This commit is contained in:
pjht 2019-08-25 17:41:13 -05:00
parent c8a3a49b87
commit d186939f87
3 changed files with 3 additions and 6 deletions

View File

@ -179,7 +179,4 @@ int main(char* initrd, uint32_t initrd_sz) {
vga_write_string("CALLING FPUTS\n");
fputs("FPUTS String",file);
vga_write_string("FPUTS RETURNED\n");
for(;;) {
yield();
}
}

View File

@ -107,8 +107,5 @@ void kmain(struct multiboot_boot_header_tag* hdr) {
initrd2=put_data(cr3,initrd2,initrd_sz);
createTaskCr3Param((void*)header.entry,cr3,(uint32_t)initrd2,initrd_sz);
exit(0);
for(;;) {
yield();
}
}
}

View File

@ -1,8 +1,11 @@
extern main
extern exit
extern __stdio_init
global _start
_start:
call __stdio_init
call main
push 0
call exit
ret