Tiberiu Chibici
913e65b856
==================================================== + Changed 'align 0x4' line above multiboot header in loader.asm to 'align 4' + Removed -e option for echo in build.sh + Modified build.sh for linux + Fixed triple fault when enabling paging + Fixed page faults at memory manager initialization + Fixed 'mem' console function + Added more info about page fault at crash screen + Added Panic() macro + Added verbose mode for memory manager [ BAD] BUILD 0.1.0.390 DATE 8/27/2011 AT 10:54 PM ==================================================== + Added stdlib routines, separated in different files + Rewritten physical memory manager + Added virtual mem manager + Added memory allocation/freeing + Added memory library + Added temporary allocation (at end of kernel), until paging is started - Removed functionality from debug console function 'mem' - Removed system.h, the one remaining function now in stdio.h
207 lines
12 KiB
Plaintext
207 lines
12 KiB
Plaintext
00000000000i[ ] Bochs x86 Emulator 2.4.6
|
|
00000000000i[ ] Build from CVS snapshot, on February 22, 2011
|
|
00000000000i[ ] Compiled at Aug 28 2011, 16:32:50
|
|
00000000000i[ ] System configuration
|
|
00000000000i[ ] processors: 1 (cores=1, HT threads=1)
|
|
00000000000i[ ] A20 line support: yes
|
|
00000000000i[ ] CPU configuration
|
|
00000000000i[ ] level: 6
|
|
00000000000i[ ] SMP support: yes, quantum=5
|
|
00000000000i[ ] APIC support: yes
|
|
00000000000i[ ] FPU support: yes
|
|
00000000000i[ ] MMX support: yes
|
|
00000000000i[ ] 3dnow! support: yes
|
|
00000000000i[ ] SEP support: yes
|
|
00000000000i[ ] SSE support: sse2
|
|
00000000000i[ ] XSAVE support: no
|
|
00000000000i[ ] AES support: no
|
|
00000000000i[ ] MOVBE support: no
|
|
00000000000i[ ] x86-64 support: yes
|
|
00000000000i[ ] 1G paging support: no
|
|
00000000000i[ ] VMX support: 1
|
|
00000000000i[ ] Optimization configuration
|
|
00000000000i[ ] RepeatSpeedups support: yes
|
|
00000000000i[ ] Trace cache support: yes
|
|
00000000000i[ ] Fast function calls: yes
|
|
00000000000i[ ] Devices configuration
|
|
00000000000i[ ] ACPI support: yes
|
|
00000000000i[ ] NE2000 support: no
|
|
00000000000i[ ] PCI support: yes, enabled=yes
|
|
00000000000i[ ] SB16 support: yes
|
|
00000000000i[ ] USB support: no
|
|
00000000000i[ ] VGA extension support: vbe
|
|
00000000000i[MEM0 ] allocated memory at 0xb4116008. after alignment, vector=0xb4117000
|
|
00000000000i[MEM0 ] 32.00MB
|
|
00000000000i[MEM0 ] mem block size = 0x00100000, blocks=32
|
|
00000000000i[MEM0 ] rom at 0xfffe0000/131072 ('/usr/local/share/bochs/BIOS-bochs-latest')
|
|
00000000000i[MEM0 ] rom at 0xc0000/40448 ('/usr/local/share/bochs/VGABIOS-lgpl-latest')
|
|
00000000000i[CMOS ] Using local time for initial clock
|
|
00000000000i[CMOS ] Setting initial clock to: Mon Aug 29 10:21:59 2011 (time0=1314602519)
|
|
00000000000i[DMA ] channel 4 used by cascade
|
|
00000000000i[DMA ] channel 2 used by Floppy Drive
|
|
00000000000i[FDD ] fd0: '../luxos.img' ro=0, h=2,t=80,spt=18
|
|
00000000000i[PCI ] 440FX Host bridge present at device 0, function 0
|
|
00000000000i[PCI ] PIIX3 PCI-to-ISA bridge present at device 1, function 0
|
|
00000000000i[VGA ] interval=50000
|
|
00000000000i[MEM0 ] Register memory access handlers: 0x00000000000a0000 - 0x00000000000bffff
|
|
00000000000i[XGUI ] test_alloc_colors: 16 colors available out of 16 colors tried
|
|
00000000000i[XGUI ] font 8 wide x 16 high, display depth = 24
|
|
00000000000i[MEM0 ] Register memory access handlers: 0x00000000e0000000 - 0x00000000e0ffffff
|
|
00000000000i[VGA ] VBE Bochs Display Extension Enabled
|
|
00000000000i[ ] init_dev of 'unmapped' plugin device by virtual method
|
|
00000000000i[ ] init_dev of 'biosdev' plugin device by virtual method
|
|
00000000000i[ ] init_dev of 'speaker' plugin device by virtual method
|
|
00000000000i[SPEAK] Failed to open /dev/console: Resource temporarily unavailable
|
|
00000000000i[SPEAK] Deactivating beep on console
|
|
00000000000i[ ] init_dev of 'extfpuirq' plugin device by virtual method
|
|
00000000000i[ ] init_dev of 'gameport' plugin device by virtual method
|
|
00000000000i[ ] init_dev of 'iodebug' plugin device by virtual method
|
|
00000000000i[ ] init_dev of 'pci_ide' plugin device by virtual method
|
|
00000000000i[PCI ] PIIX3 PCI IDE controller present at device 1, function 1
|
|
00000000000i[ ] init_dev of 'acpi' plugin device by virtual method
|
|
00000000000i[PCI ] ACPI Controller present at device 1, function 3
|
|
00000000000i[ ] init_dev of 'ioapic' plugin device by virtual method
|
|
00000000000i[IOAP ] initializing I/O APIC
|
|
00000000000i[MEM0 ] Register memory access handlers: 0x00000000fec00000 - 0x00000000fec00fff
|
|
00000000000i[ ] init_dev of 'keyboard' plugin device by virtual method
|
|
00000000000i[KBD ] will paste characters every 1000 keyboard ticks
|
|
00000000000i[ ] init_dev of 'harddrv' plugin device by virtual method
|
|
00000000000i[HD ] Using boot sequence floppy, none, none
|
|
00000000000i[HD ] Floppy boot signature check is enabled
|
|
00000000000i[ ] init_dev of 'serial' plugin device by virtual method
|
|
00000000000i[SER ] com1 at 0x03f8 irq 4
|
|
00000000000i[ ] init_dev of 'parallel' plugin device by virtual method
|
|
00000000000i[PAR ] parallel port 1 at 0x0378 irq 7
|
|
00000000000i[ ] register state of 'unmapped' plugin device by virtual method
|
|
00000000000i[ ] register state of 'biosdev' plugin device by virtual method
|
|
00000000000i[ ] register state of 'speaker' plugin device by virtual method
|
|
00000000000i[ ] register state of 'extfpuirq' plugin device by virtual method
|
|
00000000000i[ ] register state of 'gameport' plugin device by virtual method
|
|
00000000000i[ ] register state of 'iodebug' plugin device by virtual method
|
|
00000000000i[ ] register state of 'pci_ide' plugin device by virtual method
|
|
00000000000i[ ] register state of 'acpi' plugin device by virtual method
|
|
00000000000i[ ] register state of 'ioapic' plugin device by virtual method
|
|
00000000000i[ ] register state of 'keyboard' plugin device by virtual method
|
|
00000000000i[ ] register state of 'harddrv' plugin device by virtual method
|
|
00000000000i[ ] register state of 'serial' plugin device by virtual method
|
|
00000000000i[ ] register state of 'parallel' 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 0x00000000fee00000
|
|
00000000000i[CPU0 ] CPU[0] is the bootstrap processor
|
|
00000000000i[CPU0 ] CPUID[0x00000000]: 00000003 68747541 444d4163 69746e65
|
|
00000000000i[CPU0 ] CPUID[0x00000001]: 00000f23 00000800 00002020 07cbfbff
|
|
00000000000i[CPU0 ] CPUID[0x00000002]: 00000000 00000000 00000000 00000000
|
|
00000000000i[CPU0 ] CPUID[0x00000003]: 00000000 00000000 00000000 00000000
|
|
00000000000i[CPU0 ] CPUID[0x00000004]: 00000000 00000000 00000000 00000000
|
|
00000000000i[CPU0 ] CPUID[0x00000007]: 00000000 00000000 00000000 00000000
|
|
00000000000i[CPU0 ] CPUID[0x80000000]: 80000008 68747541 444d4163 69746e65
|
|
00000000000i[CPU0 ] CPUID[0x80000001]: 00000f23 00000000 00000001 ebd3fbff
|
|
00000000000i[CPU0 ] CPUID[0x80000002]: 20444d41 6c687441 74286e6f 7020296d
|
|
00000000000i[CPU0 ] CPUID[0x80000003]: 65636f72 726f7373 00000000 00000000
|
|
00000000000i[CPU0 ] CPUID[0x80000004]: 00000000 00000000 00000000 00000000
|
|
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[ ] reset of 'unmapped' plugin device by virtual method
|
|
00000000000i[ ] reset of 'biosdev' plugin device by virtual method
|
|
00000000000i[ ] reset of 'speaker' plugin device by virtual method
|
|
00000000000i[ ] reset of 'extfpuirq' plugin device by virtual method
|
|
00000000000i[ ] reset of 'gameport' plugin device by virtual method
|
|
00000000000i[ ] reset of 'iodebug' plugin device by virtual method
|
|
00000000000i[ ] reset of 'pci_ide' plugin device by virtual method
|
|
00000000000i[ ] reset of 'acpi' plugin device by virtual method
|
|
00000000000i[ ] reset of 'ioapic' plugin device by virtual method
|
|
00000000000i[ ] reset of 'keyboard' plugin device by virtual method
|
|
00000000000i[ ] reset of 'harddrv' plugin device by virtual method
|
|
00000000000i[ ] reset of 'serial' plugin device by virtual method
|
|
00000000000i[ ] reset of 'parallel' plugin device by virtual method
|
|
00000000000i[XGUI ] [x] Mouse off
|
|
00000003305i[BIOS ] $Revision: 1.257 $ $Date: 2011/01/26 09:52:02 $
|
|
00000318072i[KBD ] reset-disable command received
|
|
00000444792i[VBIOS] VGABios $Id: vgabios.c,v 1.69 2009/04/07 18:18:20 vruppert Exp $
|
|
00000444863i[VGA ] VBE known Display Interface b0c0
|
|
00000444895i[VGA ] VBE known Display Interface b0c5
|
|
00000447820i[VBIOS] VBE Bios $Id: vbe.c,v 1.62 2009/01/25 15:46:25 vruppert Exp $
|
|
00000600000i[XGUI ] charmap update. Font Height is 16
|
|
00000760509i[BIOS ] Starting rombios32
|
|
00000761006i[BIOS ] Shutdown flag 0
|
|
00000761687i[BIOS ] ram_size=0x02000000
|
|
00000762165i[BIOS ] ram_end=32MB
|
|
00000802749i[BIOS ] Found 1 cpu(s)
|
|
00000821736i[BIOS ] bios_table_addr: 0x000fb928 end=0x000fcc00
|
|
00000821839i[PCI ] 440FX PMC write to PAM register 59 (TLB Flush)
|
|
00001149536i[PCI ] 440FX PMC write to PAM register 59 (TLB Flush)
|
|
00001477464i[P2I ] PCI IRQ routing: PIRQA# set to 0x0b
|
|
00001477485i[P2I ] PCI IRQ routing: PIRQB# set to 0x09
|
|
00001477506i[P2I ] PCI IRQ routing: PIRQC# set to 0x0b
|
|
00001477527i[P2I ] PCI IRQ routing: PIRQD# set to 0x09
|
|
00001477537i[P2I ] write: ELCR2 = 0x0a
|
|
00001478422i[BIOS ] PIIX3/PIIX4 init: elcr=00 0a
|
|
00001486380i[BIOS ] PCI: bus=0 devfn=0x00: vendor_id=0x8086 device_id=0x1237 class=0x0600
|
|
00001488942i[BIOS ] PCI: bus=0 devfn=0x08: vendor_id=0x8086 device_id=0x7000 class=0x0601
|
|
00001491343i[BIOS ] PCI: bus=0 devfn=0x09: vendor_id=0x8086 device_id=0x7010 class=0x0101
|
|
00001491573i[PIDE ] new BM-DMA address: 0xc000
|
|
00001492277i[BIOS ] region 4: 0x0000c000
|
|
00001494587i[BIOS ] PCI: bus=0 devfn=0x0b: vendor_id=0x8086 device_id=0x7113 class=0x0680
|
|
00001494825i[ACPI ] new irq line = 11
|
|
00001494839i[ACPI ] new irq line = 9
|
|
00001494869i[ACPI ] new PM base address: 0xb000
|
|
00001494883i[ACPI ] new SM base address: 0xb100
|
|
00001494911i[PCI ] setting SMRAM control register to 0x4a
|
|
00001659005i[CPU0 ] Enter to System Management Mode
|
|
00001659005i[CPU0 ] enter_system_management_mode: temporary disable VMX while in SMM mode
|
|
00001659015i[CPU0 ] RSM: Resuming from System Management Mode
|
|
00001823035i[PCI ] setting SMRAM control register to 0x0a
|
|
00001832206i[BIOS ] MP table addr=0x000fba00 MPC table addr=0x000fb930 size=0xd0
|
|
00001834265i[BIOS ] SMBIOS table addr=0x000fba10
|
|
00001836653i[BIOS ] ACPI tables: RSDP addr=0x000fbb30 ACPI DATA addr=0x01ff0000 size=0x988
|
|
00001839891i[BIOS ] Firmware waking vector 0x1ff00cc
|
|
00001851004i[PCI ] 440FX PMC write to PAM register 59 (TLB Flush)
|
|
00001851848i[BIOS ] bios_table_cur_addr: 0x000fbb54
|
|
00014041552i[BIOS ] Booting from 0000:7c00
|
|
00023137422i[BIOS ] int13_harddisk: function 41, unmapped device for ELDL=80
|
|
00023142203i[BIOS ] int13_harddisk: function 08, unmapped device for ELDL=80
|
|
00023146854i[BIOS ] *** int 15h function AX=00c0, BX=0000 not yet supported!
|
|
00037427421i[CPU0 ] [37427421] Stopped on MAGIC BREAKPOINT
|
|
00037475097i[KBD ] setting typematic info
|
|
00037475122i[KBD ] setting delay to 500 mS (unused)
|
|
00037475122i[KBD ] setting repeat rate to 10.9 cps (unused)
|
|
00037475183i[KBD ] Switched to scancode set 2
|
|
00037475271i[KBD ] keyboard: scan convert turned off
|
|
00037475895i[KBD ] keyboard: scan convert turned off
|
|
00037491918i[FDD ] controller reset in software
|
|
00039078683i[FDD ] io_write: config control register: 0x00
|
|
00055400059i[CPU0 ] [55400059] Stopped on MAGIC BREAKPOINT
|
|
00165600000i[ ] dbg: Quit
|
|
00165600000i[CPU0 ] CPU is in protected mode (active)
|
|
00165600000i[CPU0 ] CS.d_b = 32 bit
|
|
00165600000i[CPU0 ] SS.d_b = 32 bit
|
|
00165600000i[CPU0 ] EFER = 0x00000000
|
|
00165600000i[CPU0 ] | RAX=00000000000000ff RBX=000000000010d78c
|
|
00165600000i[CPU0 ] | RCX=00000000000003d4 RDX=000000000010d6ca
|
|
00165600000i[CPU0 ] | RSP=000000000010d68c RBP=000000000010d6a4
|
|
00165600000i[CPU0 ] | RSI=000000000010d6ca RDI=0000000000000002
|
|
00165600000i[CPU0 ] | R8=0000000000000000 R9=0000000000000000
|
|
00165600000i[CPU0 ] | R10=0000000000000000 R11=0000000000000000
|
|
00165600000i[CPU0 ] | R12=0000000000000000 R13=0000000000000000
|
|
00165600000i[CPU0 ] | R14=0000000000000000 R15=0000000000000000
|
|
00165600000i[CPU0 ] | IOPL=0 id vip vif ac vm rf nt of df IF tf sf ZF af PF cf
|
|
00165600000i[CPU0 ] | SEG selector base limit G D
|
|
00165600000i[CPU0 ] | SEG sltr(index|ti|rpl) base limit G D
|
|
00165600000i[CPU0 ] | CS:0008( 0001| 0| 0) 00000000 ffffffff 1 1
|
|
00165600000i[CPU0 ] | DS:0010( 0002| 0| 0) 00000000 ffffffff 1 1
|
|
00165600000i[CPU0 ] | SS:0010( 0002| 0| 0) 00000000 ffffffff 1 1
|
|
00165600000i[CPU0 ] | ES:0010( 0002| 0| 0) 00000000 ffffffff 1 1
|
|
00165600000i[CPU0 ] | FS:0010( 0002| 0| 0) 00000000 ffffffff 1 1
|
|
00165600000i[CPU0 ] | GS:0010( 0002| 0| 0) 00000000 ffffffff 1 1
|
|
00165600000i[CPU0 ] | MSR_FS_BASE:0000000000000000
|
|
00165600000i[CPU0 ] | MSR_GS_BASE:0000000000000000
|
|
00165600000i[CPU0 ] | RIP=0000000000105eb4 (0000000000105eb4)
|
|
00165600000i[CPU0 ] | CR0=0xe0000011 CR2=0x0000000000000000
|
|
00165600000i[CPU0 ] | CR3=0x00110000 CR4=0x00000000
|
|
00165600000i[CMOS ] Last time is 1314602560 (Mon Aug 29 10:22:40 2011)
|
|
00165600000i[XGUI ] Exit
|
|
00165600000i[CTRL ] quit_sim called with exit code 0
|