Should be part of a broader "Define xv6 ABI" milestone.
Best plan would be to copy SYSV SVR4.
https://refspecs.linuxbase.org/elf/abi386-4.pdf
wait and waitpid should be modified accordingly, along with the necessary stuff in struct proc. At last we should be able to return from main without exit()ing!
Should be part of a broader "Define xv6 ABI" milestone.
Best plan would be to copy SYSV SVR4.
https://refspecs.linuxbase.org/elf/abi386-4.pdf
waitandwaitpidshould be modified accordingly, along with the necessary stuff instruct proc. At last we should be able toreturnfrom main withoutexit()ing!