mit-pdos / xv6-riscv

Xv6 for RISC-V
Other
6.58k stars 2.38k forks source link

start() in ulib.c: exit(main()); #181

Open marcelodarroyo opened 1 year ago

marcelodarroyo commented 1 year ago

Change _main() function for start() in ulib.c. user.ld doesn't need to set ENTRY() point. start() now calls exit(main()); so user programs return main() value as exit code.