This commit is contained in:
Baptiste Wicht 2014-03-10 14:22:18 +01:00
parent 08aeaa0d30
commit 880e411be2

View File

@ -28,7 +28,8 @@
extern "C" { extern "C" {
void __cxa_pure_virtual(){ void __cxa_pure_virtual(){
//TODO Print something k_print_line("A pure virtual function has been called");
suspend_kernel();
} }
void _init(); void _init();
@ -103,11 +104,10 @@ void kernel_main(){
void suspend_boot(){ void suspend_boot(){
k_print_line("Impossible to continue boot..."); k_print_line("Impossible to continue boot...");
asm volatile("hlt"); suspend_kernel();
__builtin_unreachable();
} }
void suspend_kernel(){ void suspend_kernel(){
asm volatile("hlt"); asm volatile("cli; hlt");
__builtin_unreachable(); __builtin_unreachable();
} }