kmain no longer hangs on return
loader now has some instruction cookies to make debuggin easier
This commit is contained in:
parent
0dfd0e9fe2
commit
d56780dc0b
@ -112,7 +112,6 @@ void interrupt_handler(struct cpu_reg_state* cpu) {
|
|||||||
if(cpu->int_no < 32) {
|
if(cpu->int_no < 32) {
|
||||||
printf(err_msg[cpu->int_no]);
|
printf(err_msg[cpu->int_no]);
|
||||||
}
|
}
|
||||||
for(;;);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
5
kernel.c
5
kernel.c
@ -27,11 +27,8 @@ void kprints(const char* s) {
|
|||||||
printf(s);
|
printf(s);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Should kmain return, we fall back to the loader which then just keeps in a hung state
|
||||||
void kmain() {
|
void kmain() {
|
||||||
kinit();
|
kinit();
|
||||||
//__asm__("xchg bx, bx");
|
|
||||||
//__asm__("xor eax, eax");
|
|
||||||
//__asm__("div al");
|
|
||||||
kprints("i guess we're good now?");
|
kprints("i guess we're good now?");
|
||||||
for(;;); // the most amazing loop
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user