moved breakpoint to kmain to track interrupt problems

This commit is contained in:
shockrahwow 2019-11-05 17:44:03 -08:00
parent 80a4e7069a
commit 8660744a4f
3 changed files with 3 additions and 9 deletions

View File

@ -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
}

View File

@ -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();
}

View File

@ -1,6 +1,5 @@
#include "types.h"
#include "stlio.h"
void divide_by_zero();
void test_write();
void test_dispatcher();