galileo: Halt if main() returns

This patch adds extra intrunctions to loader.S so we halt if main()
returns.
This commit is contained in:
Andre Guedes 2015-03-11 19:44:00 +00:00 committed by Jesus Sanchez-Palencia
parent 766d3aa820
commit 7a1898f73e
1 changed files with 5 additions and 0 deletions

View File

@ -43,3 +43,8 @@
start:
cli
call main
/* We're not expected to return from main(). But if we do we halt */
cli
halt: hlt
jmp halt