mirror of
https://github.com/wichtounet/thor-os.git
synced 2025-09-13 06:29:47 -04:00
Cleanup
This commit is contained in:
parent
08aeaa0d30
commit
880e411be2
@ -28,7 +28,8 @@
|
||||
extern "C" {
|
||||
|
||||
void __cxa_pure_virtual(){
|
||||
//TODO Print something
|
||||
k_print_line("A pure virtual function has been called");
|
||||
suspend_kernel();
|
||||
}
|
||||
|
||||
void _init();
|
||||
@ -103,11 +104,10 @@ void kernel_main(){
|
||||
|
||||
void suspend_boot(){
|
||||
k_print_line("Impossible to continue boot...");
|
||||
asm volatile("hlt");
|
||||
__builtin_unreachable();
|
||||
suspend_kernel();
|
||||
}
|
||||
|
||||
void suspend_kernel(){
|
||||
asm volatile("hlt");
|
||||
asm volatile("cli; hlt");
|
||||
__builtin_unreachable();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user