moved breakpoint to kmain to track interrupt problems
This commit is contained in:
parent
80a4e7069a
commit
8660744a4f
3
kernel.c
3
kernel.c
@ -14,5 +14,8 @@ void kinit() {
|
||||
|
||||
void kmain() {
|
||||
kinit();
|
||||
__asm__("xchg bx, bx");
|
||||
__asm__("xor eax, eax");
|
||||
__asm__("div al");
|
||||
for(;;); // the most amazing loop
|
||||
}
|
||||
|
8
tests.c
8
tests.c
@ -3,13 +3,6 @@
|
||||
#include "tests.h"
|
||||
#include "serial.h"
|
||||
|
||||
void divide_by_zero() {
|
||||
// here we can test the divide by zero without gcc noticing
|
||||
int x = 0;
|
||||
int y = 5;
|
||||
int z = y/x;
|
||||
}
|
||||
|
||||
void test_serial_write() {
|
||||
char* serial1 = "0123456789abcdef0123456789abcdef";
|
||||
serial_write(serial1, strlen(serial1));
|
||||
@ -24,6 +17,5 @@ void test_write() {
|
||||
void test_dispatcher() {
|
||||
clear_fb();
|
||||
test_write();
|
||||
divide_by_zero();
|
||||
test_write();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user