From ecf636f2797647d5dfc38a4562cae53fe275217d Mon Sep 17 00:00:00 2001 From: Nic Gaffney Date: Tue, 6 Feb 2024 04:58:35 -0600 Subject: Interrupts + basic keyboard driver --- bochs/dblog.txt | 29 ++++++++++++++--------------- 1 file changed, 14 insertions(+), 15 deletions(-) (limited to 'bochs/dblog.txt') diff --git a/bochs/dblog.txt b/bochs/dblog.txt index 95f70d9..72abe57 100644 --- a/bochs/dblog.txt +++ b/bochs/dblog.txt @@ -2,15 +2,15 @@ Next at t=0 (0) [0x0000fffffff0] f000:fff0 (unk. ctxt): jmpf 0xf000:e05b ; ea5be000f0 c (0) Magic breakpoint -Next at t=75345490 -(0) [0x0000001008af] 0008:00000000001008af (unk. ctxt): cli ; fa -info cpu +Next at t=76673186 +(0) [0x000000100d0b] 0008:0000000000100d0b (unk. ctxt): call .-2928 (0x001001a0) ; e890f4ffff +info cpu CPU0: -rax: 00000000_00000000 +rax: 00000000_00000010 rbx: 00000000_00010000 -rcx: 00000000_0000000f -rdx: 00000000_000b8f9e -rsp: 00000000_00107030 +rcx: 00000000_00008e00 +rdx: 00000000_00000008 +rsp: 00000000_00107830 rbp: 00000000_00000000 rsi: 00000000_00000000 rdi: 00000000_00000000 @@ -22,8 +22,8 @@ r12: 00000000_00000000 r13: 00000000_00000000 r14: 00000000_00000000 r15: 00000000_00000000 -rip: 00000000_001008af -eflags 0x00000002: id vip vif ac vm rf nt IOPL=0 of df if tf sf zf af pf cf +rip: 00000000_00100d0b +eflags 0x00000202: id vip vif ac vm rf nt IOPL=0 of df IF tf sf zf af pf cf MM[0]: 00000000_00000000 MM[1]: 00000000_00000000 MM[2]: 00000000_00000000 @@ -33,14 +33,13 @@ MM[5]: 00000000_00000000 MM[6]: 00000000_00000000 MM[7]: 00000000_00000000 The CPU doesn't support AVX state ! -info gdt +info gdt 0 2 Global Descriptor Table (base=0x0000000000000000, limit=23): GDT[0x0000]=??? descriptor hi=0x00000000, lo=0x00000000 GDT[0x0008]=Code segment, base=0x00000000, limit=0x3fffffff, Execute/Read, Non-Conforming, Accessed, 32-bit GDT[0x0010]=Data segment, base=0x00000000, limit=0x3fffffff, Read/Write, Accessed -You can list individual entries with 'info gdt [NUM]' or groups with 'info gdt [NUM] [NUM]' -info idt -Interrupt Descriptor Table (base=0x000000000007fffe, limit=0): -You can list individual entries with 'info idt [NUM]' or groups with 'info idt [NUM] [NUM]' +info idt 0x21 +Interrupt Descriptor Table (base=0x0000000000103030, limit=2047): +IDT[0x21]=32-Bit Interrupt Gate target=0x0008:0x00100d30, DPL=0 exit -(0).[75345490] [0x0000001008af] 0008:00000000001008af (unk. ctxt): cli ; fa +(0).[76673186] [0x000000100d0b] 0008:0000000000100d0b (unk. ctxt): call .-2928 (0x001001a0) ; e890f4ffff -- cgit v1.2.3