mirror of
https://github.com/wichtounet/thor-os.git
synced 2025-09-13 14:36:37 -04:00
Cleanup
This commit is contained in:
parent
08aeaa0d30
commit
880e411be2
@ -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();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user