From c1cbfb34729f0c0dd6a298a2aa7ad24eff1b1795 Mon Sep 17 00:00:00 2001 From: shockrah Date: Wed, 30 Oct 2019 23:21:48 -0700 Subject: [PATCH 1/4] readme better reflects current project state --- readme.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/readme.md b/readme.md index a0fe4d6..58174a9 100644 --- a/readme.md +++ b/readme.md @@ -8,11 +8,13 @@ Personally I'm unsatisfied with accepting an idea; I want to garner an intuition ## Done & Dusted -* Segmentation(research what I might need to make either this or paging work later on) +* GDT Initialization - now ready to take steps to move to user mode + +* IDT Initialization - interrupt callbacks aren't firing but the table is initialized ## Todo/Roadmap -* Interrupt Descriptor Table +* Fixing Interrupt handlers * Memory allocator From b4782bd9194e44d032b4e605c983df06372fa216 Mon Sep 17 00:00:00 2001 From: shockrah Date: Tue, 5 Nov 2019 14:42:53 -0800 Subject: [PATCH 2/4] proper div by zero in test case --- tests.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests.c b/tests.c index ac3e99a..fa08f9d 100644 --- a/tests.c +++ b/tests.c @@ -5,9 +5,8 @@ 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; + __asm__("mov eax, 0"); + __asm__("div al"); } void test_serial_write() { From 588a3b6e892e696e83a5ece44ffc3c847ce0f736 Mon Sep 17 00:00:00 2001 From: shockrah Date: Tue, 5 Nov 2019 15:39:10 -0800 Subject: [PATCH 3/4] visual debugger added to bochsrs --- bochsrc.conf | 1 + 1 file changed, 1 insertion(+) diff --git a/bochsrc.conf b/bochsrc.conf index 4607ea8..61621b0 100644 --- a/bochsrc.conf +++ b/bochsrc.conf @@ -8,3 +8,4 @@ log: bochslog.txt clock: sync=realtime, time0=local cpu: count=1, ips=1000000 com1: enabled=1, mode=file, dev=COM1.out +display_library: x, options="gui_debug" From 41473c38321eaf619a2453cd12534ce3001e04fd Mon Sep 17 00:00:00 2001 From: shockrah Date: Thu, 7 Nov 2019 03:05:39 -0800 Subject: [PATCH 4/4] ignoring gui debugger files --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 1595656..7ee37f5 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,4 @@ kernels/ rand/ COM1.out +bx_enh_dbg.ini