From fb72d05d3d8b4b37a4a8dc4cf4355eb0a3fafeef Mon Sep 17 00:00:00 2001 From: Nic Gaffney Date: Tue, 6 Feb 2024 05:01:47 -0600 Subject: Updated gitignore --- .gitignore | 1 + bochs/dblog.txt | 45 ---------- bochs/log.txt | 254 -------------------------------------------------------- notes.txt | 23 ----- 4 files changed, 1 insertion(+), 322 deletions(-) delete mode 100644 bochs/dblog.txt delete mode 100644 bochs/log.txt delete mode 100644 notes.txt diff --git a/.gitignore b/.gitignore index 5d57669..a52f8ff 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ build/ out/*.iso out/isodir/boot/*.bin +bochs/*.txt diff --git a/bochs/dblog.txt b/bochs/dblog.txt deleted file mode 100644 index 72abe57..0000000 --- a/bochs/dblog.txt +++ /dev/null @@ -1,45 +0,0 @@ -Next at t=0 -(0) [0x0000fffffff0] f000:fff0 (unk. ctxt): jmpf 0xf000:e05b ; ea5be000f0 -c -(0) Magic breakpoint -Next at t=76673186 -(0) [0x000000100d0b] 0008:0000000000100d0b (unk. ctxt): call .-2928 (0x001001a0) ; e890f4ffff -info cpu -CPU0: -rax: 00000000_00000010 -rbx: 00000000_00010000 -rcx: 00000000_00008e00 -rdx: 00000000_00000008 -rsp: 00000000_00107830 -rbp: 00000000_00000000 -rsi: 00000000_00000000 -rdi: 00000000_00000000 -r8 : 00000000_00000000 -r9 : 00000000_00000000 -r10: 00000000_00000000 -r11: 00000000_00000000 -r12: 00000000_00000000 -r13: 00000000_00000000 -r14: 00000000_00000000 -r15: 00000000_00000000 -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 -MM[3]: 00000000_00000000 -MM[4]: 00000000_00000000 -MM[5]: 00000000_00000000 -MM[6]: 00000000_00000000 -MM[7]: 00000000_00000000 -The CPU doesn't support AVX state ! -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 -info idt 0x21 -Interrupt Descriptor Table (base=0x0000000000103030, limit=2047): -IDT[0x21]=32-Bit Interrupt Gate target=0x0008:0x00100d30, DPL=0 -exit -(0).[76673186] [0x000000100d0b] 0008:0000000000100d0b (unk. ctxt): call .-2928 (0x001001a0) ; e890f4ffff diff --git a/bochs/log.txt b/bochs/log.txt deleted file mode 100644 index a06ac96..0000000 --- a/bochs/log.txt +++ /dev/null @@ -1,254 +0,0 @@ -00000000000i[ ] Bochs x86 Emulator 2.7 -00000000000i[ ] Built from SVN snapshot on August 1, 2021 -00000000000i[ ] Timestamp: Sun Aug 1 10:07:00 CEST 2021 -00000000000i[ ] System configuration -00000000000i[ ] processors: 1 (cores=1, HT threads=1) -00000000000i[ ] A20 line support: yes -00000000000i[ ] IPS is set to 4000000 -00000000000i[ ] CPU configuration -00000000000i[ ] SMP support: yes, quantum=16 -00000000000i[ ] level: 6 -00000000000i[ ] APIC support: xapic -00000000000i[ ] FPU support: yes -00000000000i[ ] MMX support: yes -00000000000i[ ] 3dnow! support: no -00000000000i[ ] SEP support: yes -00000000000i[ ] SIMD support: sse2 -00000000000i[ ] XSAVE support: no -00000000000i[ ] AES support: no -00000000000i[ ] SHA support: no -00000000000i[ ] MOVBE support: no -00000000000i[ ] ADX support: no -00000000000i[ ] x86-64 support: yes -00000000000i[ ] 1G paging support: no -00000000000i[ ] MWAIT support: yes -00000000000i[ ] Optimization configuration -00000000000i[ ] RepeatSpeedups support: yes -00000000000i[ ] Fast function calls: yes -00000000000i[ ] Handlers Chaining speedups: no -00000000000i[ ] Devices configuration -00000000000i[ ] PCI support: i440FX i430FX i440BX -00000000000i[ ] Network devices support: E1000 -00000000000i[ ] Sound support: no -00000000000i[ ] USB support: UHCI OHCI EHCI xHCI -00000000000i[ ] VGA extension support: vbe -00000000000i[IMG ] Disk image modules -00000000000i[IMG ] flat concat sparse dll growing undoable volatile vmware3 -00000000000i[IMG ] vmware4 vbox vpc vvfat -00000000000i[NETCTL] Networking modules -00000000000i[NETCTL] null vnet linux slirp socket tuntap vde -00000000000i[USBCTL] Pluggable USB devices -00000000000i[USBCTL] floppy mouse tablet keypad keyboard hub disk cdrom -00000000000i[USBCTL] printer -00000000000i[MEM0 ] allocated memory at 0x7fbf95b90010. after alignment, vector=0x7fbf95b91000 -00000000000i[MEM0 ] 32.00MB -00000000000i[MEM0 ] mem block size = 0x00020000, blocks=256 -00000000000i[MEM0 ] rom at 0xfffe0000/131072 ('/usr/share/bochs/BIOS-bochs-latest') -00000000000i[DEV ] will paste characters every 100 iodev timer ticks -00000000000i[PLUGIN] init_dev of 'vga' plugin device by virtual method -00000000000i[MEM0 ] Register memory access handlers: 0x0000000a0000 - 0x0000000bffff -00000000000i[VGA ] interval=200000, mode=realtime -00000000000i[VGA ] VSYNC using standard mode -00000000000i[MEM0 ] rom at 0xc0000/38400 ('/usr/share/bochs/VGABIOS-lgpl-latest') -00000000000i[PLUGIN] init_dev of 'pci' plugin device by virtual method -00000000000i[DEV ] i440FX PMC present at device 0, function 0 -00000000000i[PLUGIN] init_dev of 'pci2isa' plugin device by virtual method -00000000000i[DEV ] PIIX3 PCI-to-ISA bridge present at device 1, function 0 -00000000000i[PLUGIN] init_dev of 'cmos' plugin device by virtual method -00000000000i[CMOS ] Using local time for initial clock -00000000000i[CMOS ] Setting initial clock to: Tue Feb 6 04:57:41 2024 (time0=1707217061) -00000000000i[PLUGIN] init_dev of 'dma' plugin device by virtual method -00000000000i[DMA ] channel 4 used by cascade -00000000000i[PLUGIN] init_dev of 'pic' plugin device by virtual method -00000000000i[PLUGIN] init_dev of 'pit' plugin device by virtual method -00000000000i[PLUGIN] init_dev of 'floppy' plugin device by virtual method -00000000000i[DMA ] channel 2 used by Floppy Drive -00000000000i[FLOPPY] Using boot sequence cdrom, none, none -00000000000i[FLOPPY] Floppy boot signature check is enabled -00000000000i[PLUGIN] init_dev of 'acpi' plugin device by virtual method -00000000000i[DEV ] ACPI Controller present at device 1, function 3 -00000000000i[PLUGIN] init_dev of 'hpet' plugin device by virtual method -00000000000i[HPET ] initializing HPET -00000000000i[MEM0 ] Register memory access handlers: 0x0000fed00000 - 0x0000fed003ff -00000000000i[PLUGIN] init_dev of 'ioapic' plugin device by virtual method -00000000000i[IOAPIC] initializing I/O APIC -00000000000i[MEM0 ] Register memory access handlers: 0x0000fec00000 - 0x0000fec00fff -00000000000i[IOAPIC] IOAPIC enabled (base address = 0xfec00000) -00000000000i[PLUGIN] init_dev of 'keyboard' plugin device by virtual method -00000000000i[PLUGIN] init_dev of 'harddrv' plugin device by virtual method -00000000000i[HD ] CD on ata0-1: 'out/gftos.iso' -00000000000i[CD1 ] load cdrom with path='out/gftos.iso' -00000000000i[CD1 ] Opening image file as a cd. -00000000000i[HD ] Media present in CD-ROM drive -00000000000i[HD ] Capacity is 11322 sectors (22.11 MB) -00000000000i[PLUGIN] init_dev of 'pci_ide' plugin device by virtual method -00000000000i[DEV ] PIIX3 PCI IDE controller present at device 1, function 1 -00000000000i[PLUGIN] init_dev of 'unmapped' plugin device by virtual method -00000000000i[PLUGIN] init_dev of 'biosdev' plugin device by virtual method -00000000000i[PLUGIN] init_dev of 'speaker' plugin device by virtual method -00000000000e[PCSPK ] Failed to open /dev/console: Permission denied -00000000000e[PCSPK ] Deactivating beep on console -00000000000i[PLUGIN] init_dev of 'extfpuirq' plugin device by virtual method -00000000000i[PLUGIN] init_dev of 'parallel' plugin device by virtual method -00000000000i[PAR ] parallel port 1 at 0x0378 irq 7 -00000000000i[PLUGIN] init_dev of 'serial' plugin device by virtual method -00000000000i[SER ] com1 at 0x03f8 irq 4 (mode: null) -00000000000i[PLUGIN] init_dev of 'iodebug' plugin device by virtual method -00000000000i[PLUGIN] init_dev of 'usb_uhci' plugin device by virtual method -00000000000i[DEV ] USB UHCI present at device 1, function 2 -00000000000i[UHCI ] USB UHCI initialized -00000000000i[PLUGIN] register state of 'vga' plugin device by virtual method -00000000000i[PLUGIN] register state of 'pci' plugin device by virtual method -00000000000i[PLUGIN] register state of 'pci2isa' plugin device by virtual method -00000000000i[PLUGIN] register state of 'cmos' plugin device by virtual method -00000000000i[PLUGIN] register state of 'dma' plugin device by virtual method -00000000000i[PLUGIN] register state of 'pic' plugin device by virtual method -00000000000i[PLUGIN] register state of 'pit' plugin device by virtual method -00000000000i[PLUGIN] register state of 'floppy' plugin device by virtual method -00000000000i[PLUGIN] register state of 'unmapped' plugin device by virtual method -00000000000i[PLUGIN] register state of 'biosdev' plugin device by virtual method -00000000000i[PLUGIN] register state of 'speaker' plugin device by virtual method -00000000000i[PLUGIN] register state of 'extfpuirq' plugin device by virtual method -00000000000i[PLUGIN] register state of 'parallel' plugin device by virtual method -00000000000i[PLUGIN] register state of 'serial' plugin device by virtual method -00000000000i[PLUGIN] register state of 'iodebug' plugin device by virtual method -00000000000i[PLUGIN] register state of 'usb_uhci' plugin device by virtual method -00000000000i[PLUGIN] register state of 'acpi' plugin device by virtual method -00000000000i[PLUGIN] register state of 'hpet' plugin device by virtual method -00000000000i[PLUGIN] register state of 'ioapic' plugin device by virtual method -00000000000i[PLUGIN] register state of 'keyboard' plugin device by virtual method -00000000000i[PLUGIN] register state of 'harddrv' plugin device by virtual method -00000000000i[PLUGIN] register state of 'pci_ide' plugin device by virtual method -00000000000i[SYS ] bx_pc_system_c::Reset(HARDWARE) called -00000000000i[CPU0 ] cpu hardware reset -00000000000i[APIC0 ] allocate APIC id=0 (MMIO enabled) to 0x0000fee00000 -00000000000i[CPU0 ] CPU[0] is the bootstrap processor -00000000000i[CPU0 ] CPUID[0x00000000]: 00000005 756e6547 6c65746e 49656e69 -00000000000i[CPU0 ] CPUID[0x00000001]: 00000633 00010800 00002008 1fcbfbff -00000000000i[CPU0 ] CPUID[0x00000002]: 00410601 00000000 00000000 00000000 -00000000000i[CPU0 ] CPUID[0x00000003]: 00000000 00000000 00000000 00000000 -00000000000i[CPU0 ] CPUID[0x00000004]: 00000000 00000000 00000000 00000000 -00000000000i[CPU0 ] CPUID[0x00000005]: 00000040 00000040 00000003 00000020 -00000000000i[CPU0 ] CPUID[0x80000000]: 80000008 00000000 00000000 00000000 -00000000000i[CPU0 ] CPUID[0x80000001]: 00000000 00000000 00000101 2a100000 -00000000000i[CPU0 ] CPUID[0x80000002]: 20202020 20202020 20202020 6e492020 -00000000000i[CPU0 ] CPUID[0x80000003]: 286c6574 50202952 69746e65 52286d75 -00000000000i[CPU0 ] CPUID[0x80000004]: 20342029 20555043 20202020 00202020 -00000000000i[CPU0 ] CPUID[0x80000005]: 01ff01ff 01ff01ff 40020140 40020140 -00000000000i[CPU0 ] CPUID[0x80000006]: 00000000 42004200 02008140 00000000 -00000000000i[CPU0 ] CPUID[0x80000007]: 00000000 00000000 00000000 00000000 -00000000000i[CPU0 ] CPUID[0x80000008]: 00003028 00000000 00000000 00000000 -00000000000i[CPU0 ] CPU Features supported: -00000000000i[CPU0 ] x87 -00000000000i[CPU0 ] 486ni -00000000000i[CPU0 ] pentium_ni -00000000000i[CPU0 ] p6ni -00000000000i[CPU0 ] mmx -00000000000i[CPU0 ] debugext -00000000000i[CPU0 ] vme -00000000000i[CPU0 ] pse -00000000000i[CPU0 ] pae -00000000000i[CPU0 ] pge -00000000000i[CPU0 ] pse36 -00000000000i[CPU0 ] mtrr -00000000000i[CPU0 ] pat -00000000000i[CPU0 ] sysenter_sysexit -00000000000i[CPU0 ] clflush -00000000000i[CPU0 ] sse -00000000000i[CPU0 ] sse2 -00000000000i[CPU0 ] mwait -00000000000i[CPU0 ] longmode -00000000000i[CPU0 ] lm_lahf_sahf -00000000000i[CPU0 ] nx -00000000000i[CPU0 ] cmpxhg16b -00000000000i[CPU0 ] rdtscp -00000000000i[CPU0 ] ffxsr -00000000000i[CPU0 ] xapic -00000000000i[PLUGIN] reset of 'vga' plugin device by virtual method -00000000000i[PLUGIN] reset of 'pci' plugin device by virtual method -00000000000i[PLUGIN] reset of 'pci2isa' plugin device by virtual method -00000000000i[PLUGIN] reset of 'cmos' plugin device by virtual method -00000000000i[PLUGIN] reset of 'dma' plugin device by virtual method -00000000000i[PLUGIN] reset of 'pic' plugin device by virtual method -00000000000i[PLUGIN] reset of 'pit' plugin device by virtual method -00000000000i[PLUGIN] reset of 'floppy' plugin device by virtual method -00000000000i[PLUGIN] reset of 'acpi' plugin device by virtual method -00000000000i[PLUGIN] reset of 'hpet' plugin device by virtual method -00000000000i[PLUGIN] reset of 'ioapic' plugin device by virtual method -00000000000i[PLUGIN] reset of 'keyboard' plugin device by virtual method -00000000000i[PLUGIN] reset of 'harddrv' plugin device by virtual method -00000000000i[PLUGIN] reset of 'pci_ide' plugin device by virtual method -00000000000i[PLUGIN] reset of 'unmapped' plugin device by virtual method -00000000000i[PLUGIN] reset of 'biosdev' plugin device by virtual method -00000000000i[PLUGIN] reset of 'speaker' plugin device by virtual method -00000000000i[PLUGIN] reset of 'extfpuirq' plugin device by virtual method -00000000000i[PLUGIN] reset of 'parallel' plugin device by virtual method -00000000000i[PLUGIN] reset of 'serial' plugin device by virtual method -00000000000i[PLUGIN] reset of 'iodebug' plugin device by virtual method -00000000000i[PLUGIN] reset of 'usb_uhci' plugin device by virtual method -00000000000i[ ] Using debugger log file bochs/dblog.txt -00000000000i[ ] set SIGINT handler to bx_debug_ctrlc_handler -00000004662i[BIOS ] $Revision: 14314 $ $Date: 2021-07-14 18:10:19 +0200 (Wed, 14 Jul 2021) $ -00000318056i[KBD ] reset-disable command received -00000320838i[BIOS ] Starting rombios32 -00000321276i[BIOS ] Shutdown flag 0 -00000321874i[BIOS ] ram_size=0x02000000 -00000322306i[BIOS ] ram_end=32MB -00000363087i[BIOS ] Found 1 cpu(s) -00000376740i[BIOS ] bios_table_addr: 0x000f9d98 end=0x000fcc00 -00000704556i[PCI ] i440FX PMC write to PAM register 59 (TLB Flush) -00001032491i[P2ISA ] PCI IRQ routing: PIRQA# set to 0x0b -00001032515i[P2ISA ] PCI IRQ routing: PIRQB# set to 0x09 -00001032539i[P2ISA ] PCI IRQ routing: PIRQC# set to 0x0b -00001032563i[P2ISA ] PCI IRQ routing: PIRQD# set to 0x09 -00001032573i[P2ISA ] write: ELCR2 = 0x0a -00001033342i[BIOS ] PIIX3/PIIX4 init: elcr=00 0a -00001047018i[BIOS ] PCI: bus=0 devfn=0x00: vendor_id=0x8086 device_id=0x1237 class=0x0600 -00001049362i[BIOS ] PCI: bus=0 devfn=0x08: vendor_id=0x8086 device_id=0x7000 class=0x0601 -00001051545i[BIOS ] PCI: bus=0 devfn=0x09: vendor_id=0x8086 device_id=0x7010 class=0x0101 -00001051780i[PIDE ] BAR #4: i/o base address = 0xc000 -00001052396i[BIOS ] region 4: 0x0000c000 -00001054431i[BIOS ] PCI: bus=0 devfn=0x0a: vendor_id=0x8086 device_id=0x7020 class=0x0c03 -00001054644i[UHCI ] BAR #4: i/o base address = 0xc020 -00001055260i[BIOS ] region 4: 0x0000c020 -00001055388i[UHCI ] new IRQ line = 9 -00001057310i[BIOS ] PCI: bus=0 devfn=0x0b: vendor_id=0x8086 device_id=0x7113 class=0x0680 -00001057586i[ACPI ] new IRQ line = 11 -00001057600i[ACPI ] new IRQ line = 9 -00001057628i[ACPI ] new PM base address: 0xb000 -00001057642i[ACPI ] new SM base address: 0xb100 -00001057670i[PCI ] setting SMRAM control register to 0x4a -00001221805i[CPU0 ] Enter to System Management Mode -00001221815i[CPU0 ] RSM: Resuming from System Management Mode -00001385871i[PCI ] setting SMRAM control register to 0x0a -00001412536i[BIOS ] MP table addr=0x000f9e70 MPC table addr=0x000f9da0 size=0xc8 -00001414243i[BIOS ] SMBIOS table addr=0x000f9e80 -00001416332i[BIOS ] ACPI tables: RSDP addr=0x000f9fa0 ACPI DATA addr=0x01ff0000 size=0xff8 -00001419316i[BIOS ] Firmware waking vector 0x1ff00cc -00001421570i[PCI ] i440FX PMC write to PAM register 59 (TLB Flush) -00001422300i[BIOS ] bios_table_cur_addr: 0x000f9fc4 -00001540420i[VBIOS ] VGABios $Id: vgabios.c 288 2021-05-28 19:05:28Z vruppert $ -00001543145i[VBIOS ] VBE Bios $Id: vbe.c 292 2021-06-03 12:24:22Z vruppert $ -00005159561i[BIOS ] IDE time out -00017608938i[BIOS ] Booting from 07c0:0000 -00076673186i[CPU0 ] [76673186] Stopped on MAGIC BREAKPOINT -00076673186i[ ] dbg: Quit -00076673186i[CPU0 ] CPU is in protected mode (active) -00076673186i[CPU0 ] CS.mode = 32 bit -00076673186i[CPU0 ] SS.mode = 32 bit -00076673186i[CPU0 ] EFER = 0x00000000 -00076673186i[CPU0 ] | EAX=00000010 EBX=00010000 ECX=00008e00 EDX=00000008 -00076673186i[CPU0 ] | ESP=00107830 EBP=00000000 ESI=00000000 EDI=00000000 -00076673186i[CPU0 ] | IOPL=0 id vip vif ac vm rf nt of df IF tf sf zf af pf cf -00076673186i[CPU0 ] | SEG sltr(index|ti|rpl) base limit G D -00076673186i[CPU0 ] | CS:0008( 0001| 0| 0) 00000000 3fffffff 1 1 -00076673186i[CPU0 ] | DS:0010( 0002| 0| 0) 00000000 3fffffff 1 1 -00076673186i[CPU0 ] | SS:0010( 0002| 0| 0) 00000000 3fffffff 1 1 -00076673186i[CPU0 ] | ES:0010( 0002| 0| 0) 00000000 3fffffff 1 1 -00076673186i[CPU0 ] | FS:0010( 0002| 0| 0) 00000000 3fffffff 1 1 -00076673186i[CPU0 ] | GS:0010( 0002| 0| 0) 00000000 3fffffff 1 1 -00076673186i[CPU0 ] | EIP=00100d0b (00100d0b) -00076673186i[CPU0 ] | CR0=0x60000011 CR2=0x00000000 -00076673186i[CPU0 ] | CR3=0x00000000 CR4=0x00000000 -00076673186i[CMOS ] Last time is 1707217080 (Tue Feb 6 04:58:00 2024) -00076673186i[SIM ] quit_sim called with exit code 0 diff --git a/notes.txt b/notes.txt deleted file mode 100644 index 9016799..0000000 --- a/notes.txt +++ /dev/null @@ -1,23 +0,0 @@ - /* Defenitions: - * Segment: - * A logically contiguous chunk of memory with consistent properties from the cpus perspective - * - Just a bunch of memory dedicated for a specific purpose - * Segment Register: - * A register of the CPU that refers to a segment for a particular purpose (CS, DS, SS, ES) - * or for general use. (FS, GS) - * - Code segment, Data segment, ... - * Segment Selector: - * A reference to a descriptor, which you can load into a segment register; the selector is an offset - * into a descriptor table pointing to one of its entries. - * These entries are typically 8 bytes long, therefore - * bits 3 and up only declare the descriptor table entry offset - * bit 2 specifies GDT or LDT - * bits 0-1 declare ring level that needs to correspond to the descriptor table entry's DPL field. - * GENERAL PROTECTION FAULT if it doesn't - * If it does correspond then the CPL level of the selector used is changed accordingly - * - A pointer to an entry in the DT - * Segment Descriptor: - * An entry in a descriptor table. - * These are a binary data structure that tells the CPU the attributes of a given segment - * - A binary number that describes a segment - */ -- cgit v1.2.3