Skip to content

Commit

Permalink
add prebuild.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
yifengyou committed May 20, 2018
1 parent 07f7c59 commit aac31b5
Show file tree
Hide file tree
Showing 9 changed files with 51 additions and 354 deletions.
3 changes: 3 additions & 0 deletions code/c00/page20/compils.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

gcc -static -g editionCheck.c -o editionCheck.bin
48 changes: 0 additions & 48 deletions code/c01/boch_twodisk_src

This file was deleted.

25 changes: 0 additions & 25 deletions code/c01/bochsrc.floppy

This file was deleted.

200 changes: 36 additions & 164 deletions code/c01/log.bochsrc.disk
Original file line number Diff line number Diff line change
Expand Up @@ -32,45 +32,45 @@
00000000000i[ ] SB16 support: yes
00000000000i[ ] USB support: yes
00000000000i[ ] VGA extension support: vbe cirrus
00000000000i[MEM0 ] allocated memory at 0x7fa6c8bfe010. after alignment, vector=0x7fa6c8bff000
00000000000i[MEM0 ] allocated memory at 0x7f59b88f0010. after alignment, vector=0x7f59b88f1000
00000000000i[MEM0 ] 32.00MB
00000000000i[MEM0 ] mem block size = 0x00100000, blocks=32
00000000000i[MEM0 ] rom at 0xfffe0000/131072 ('/usr/share/bochs/BIOS-bochs-latest')
00000000000i[ ] lt_dlhandle is 0x48fbcc0
00000000000i[ ] lt_dlhandle is 0x4abadd0
00000000000i[PLGIN] loaded plugin libbx_hdimage.so
00000000000i[ ] lt_dlhandle is 0x48fc650
00000000000i[ ] lt_dlhandle is 0x4abb760
00000000000i[PLGIN] loaded plugin libbx_pci.so
00000000000i[ ] lt_dlhandle is 0x48fd1d0
00000000000i[ ] lt_dlhandle is 0x4abc2e0
00000000000i[PLGIN] loaded plugin libbx_pci2isa.so
00000000000i[ ] lt_dlhandle is 0x48fdbe0
00000000000i[ ] lt_dlhandle is 0x4abccf0
00000000000i[PLGIN] loaded plugin libbx_acpi.so
00000000000i[ ] lt_dlhandle is 0x48fe5e0
00000000000i[ ] lt_dlhandle is 0x4abd6f0
00000000000i[PLGIN] loaded plugin libbx_cmos.so
00000000000i[ ] lt_dlhandle is 0x48fef20
00000000000i[ ] lt_dlhandle is 0x4abe030
00000000000i[PLGIN] loaded plugin libbx_dma.so
00000000000i[ ] lt_dlhandle is 0x48ff9b0
00000000000i[ ] lt_dlhandle is 0x4abeac0
00000000000i[PLGIN] loaded plugin libbx_pic.so
00000000000i[ ] lt_dlhandle is 0x4900250
00000000000i[ ] lt_dlhandle is 0x4abf360
00000000000i[PLGIN] loaded plugin libbx_pit.so
00000000000i[ ] lt_dlhandle is 0x4900c80
00000000000i[ ] lt_dlhandle is 0x4abfd90
00000000000i[PLGIN] loaded plugin libbx_floppy.so
00000000000i[ ] lt_dlhandle is 0x4901870
00000000000i[ ] lt_dlhandle is 0x4ac0980
00000000000i[PLGIN] loaded plugin libbx_vga.so
00000000000i[ ] lt_dlhandle is 0x4902000
00000000000i[ ] lt_dlhandle is 0x4ac1110
00000000000i[PLGIN] loaded plugin libbx_ioapic.so
00000000000i[ ] lt_dlhandle is 0x4902a40
00000000000i[ ] lt_dlhandle is 0x4ac1b50
00000000000i[PLGIN] loaded plugin libbx_keyboard.so
00000000000i[ ] lt_dlhandle is 0x49032e0
00000000000i[ ] lt_dlhandle is 0x4ac23f0
00000000000i[PLGIN] loaded plugin libbx_harddrv.so
00000000000i[ ] lt_dlhandle is 0x49153d0
00000000000i[ ] lt_dlhandle is 0x4ad44e0
00000000000i[PLGIN] loaded plugin libbx_pci_ide.so
00000000000i[PLGIN] init_dev of 'pci' plugin device by virtual method
00000000000i[PCI ] 440FX Host bridge present at device 0, function 0
00000000000i[PLGIN] init_dev of 'pci2isa' plugin device by virtual method
00000000000i[PCI ] PIIX3 PCI-to-ISA bridge present at device 1, function 0
00000000000i[PLGIN] init_dev of 'cmos' plugin device by virtual method
00000000000i[CMOS ] Using local time for initial clock
00000000000i[CMOS ] Setting initial clock to: Fri Oct 6 10:28:17 2017 (time0=1507256897)
00000000000i[CMOS ] Setting initial clock to: Sun May 20 19:59:41 2018 (time0=1526817581)
00000000000i[PLGIN] init_dev of 'dma' plugin device by virtual method
00000000000i[DMA ] channel 4 used by cascade
00000000000i[PLGIN] init_dev of 'pic' plugin device by virtual method
Expand All @@ -96,151 +96,23 @@
00000000000i[KBD ] will paste characters every 1000 keyboard ticks
00000000000i[PLGIN] init_dev of 'harddrv' plugin device by virtual method
00000000000i[HD ] HD on ata0-0: 'hd60M.img', 'flat' mode
00000000000i[IMG ] hd_size: 62447616
00000000000i[HD ] ata0-0: using specified geometry: CHS=121/16/63
00000000000i[HD ] translation on ata0-0 set to 'none'
00000000000i[HD ] Using boot sequence disk, none, none
00000000000i[HD ] Floppy boot signature check is enabled
00000000000i[PLGIN] init_dev of 'pci_ide' plugin device by virtual method
00000000000i[PCI ] PIIX3 PCI IDE controller present at device 1, function 1
00000000000i[PLGIN] init_dev of 'unmapped' plugin device by virtual method
00000000000i[PLGIN] init_dev of 'biosdev' plugin device by virtual method
00000000000i[PLGIN] init_dev of 'speaker' plugin device by virtual method
00000000000i[PLGIN] init_dev of 'extfpuirq' plugin device by virtual method
00000000000i[PLGIN] init_dev of 'parallel' plugin device by virtual method
00000000000i[PAR ] parallel port 1 at 0x0378 irq 7
00000000000i[PLGIN] init_dev of 'serial' plugin device by virtual method
00000000000i[SER ] com1 at 0x03f8 irq 4
00000000000i[PLGIN] init_dev of 'gameport' plugin device by virtual method
00000000000i[PLGIN] init_dev of 'iodebug' plugin device by virtual method
00000000000i[PLGIN] register state of 'pci' plugin device by virtual method
00000000000i[PLGIN] register state of 'pci2isa' plugin device by virtual method
00000000000i[PLGIN] register state of 'cmos' plugin device by virtual method
00000000000i[PLGIN] register state of 'dma' plugin device by virtual method
00000000000i[PLGIN] register state of 'pic' plugin device by virtual method
00000000000i[PLGIN] register state of 'pit' plugin device by virtual method
00000000000i[PLGIN] register state of 'floppy' plugin device by virtual method
00000000000i[PLGIN] register state of 'vga' plugin device by virtual method
00000000000i[PLGIN] register state of 'unmapped' plugin device by virtual method
00000000000i[PLGIN] register state of 'biosdev' plugin device by virtual method
00000000000i[PLGIN] register state of 'speaker' plugin device by virtual method
00000000000i[PLGIN] register state of 'extfpuirq' plugin device by virtual method
00000000000i[PLGIN] register state of 'parallel' plugin device by virtual method
00000000000i[PLGIN] register state of 'serial' plugin device by virtual method
00000000000i[PLGIN] register state of 'gameport' plugin device by virtual method
00000000000i[PLGIN] register state of 'iodebug' plugin device by virtual method
00000000000i[PLGIN] register state of 'acpi' plugin device by virtual method
00000000000i[PLGIN] register state of 'ioapic' plugin device by virtual method
00000000000i[PLGIN] register state of 'keyboard' plugin device by virtual method
00000000000i[PLGIN] register state of 'harddrv' plugin device by virtual method
00000000000i[PLGIN] 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 0x00000000fee00000
00000000000i[CPU0 ] CPUID[0x00000000]: 00000002 756e6547 6c65746e 49656e69
00000000000i[CPU0 ] CPUID[0x00000001]: 00000633 00010800 00002028 1fcbfbff
00000000000i[CPU0 ] CPUID[0x00000002]: 00410601 00000000 00000000 00000000
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[PLGIN] reset of 'pci' plugin device by virtual method
00000000000i[PLGIN] reset of 'pci2isa' plugin device by virtual method
00000000000i[PLGIN] reset of 'cmos' plugin device by virtual method
00000000000i[PLGIN] reset of 'dma' plugin device by virtual method
00000000000i[PLGIN] reset of 'pic' plugin device by virtual method
00000000000i[PLGIN] reset of 'pit' plugin device by virtual method
00000000000i[PLGIN] reset of 'floppy' plugin device by virtual method
00000000000i[PLGIN] reset of 'vga' plugin device by virtual method
00000000000i[PLGIN] reset of 'acpi' plugin device by virtual method
00000000000i[PLGIN] reset of 'ioapic' plugin device by virtual method
00000000000i[PLGIN] reset of 'keyboard' plugin device by virtual method
00000000000i[PLGIN] reset of 'harddrv' plugin device by virtual method
00000000000i[PLGIN] reset of 'pci_ide' plugin device by virtual method
00000000000i[PLGIN] reset of 'unmapped' plugin device by virtual method
00000000000i[PLGIN] reset of 'biosdev' plugin device by virtual method
00000000000i[PLGIN] reset of 'speaker' plugin device by virtual method
00000000000i[SPEAK] Using /dev/console for output
00000000000i[PLGIN] reset of 'extfpuirq' plugin device by virtual method
00000000000i[PLGIN] reset of 'parallel' plugin device by virtual method
00000000000i[PLGIN] reset of 'serial' plugin device by virtual method
00000000000i[PLGIN] reset of 'gameport' plugin device by virtual method
00000000000i[PLGIN] reset of 'iodebug' plugin device by virtual method
00000000000i[XGUI ] Mouse capture off
00000000000i[ ] set SIGINT handler to bx_debug_ctrlc_handler
00000000000i[XGUI ] Mouse capture off
00000000025i[MEM0 ] allocate_block: block=0x0 used 0x1 of 0x20
00000004661i[BIOS ] $Revision: 11318 $ $Date: 2012-08-06 19:59:54 +0200 (Mo, 06. Aug 2012) $
00000319074i[KBD ] reset-disable command received
00000321798i[BIOS ] Starting rombios32
00000322240i[BIOS ] Shutdown flag 0
00000322837i[BIOS ] ram_size=0x02000000
00000323265i[BIOS ] ram_end=32MB
00000363803i[BIOS ] Found 1 cpu(s)
00000377984i[BIOS ] bios_table_addr: 0x000fa438 end=0x000fcc00
00000705779i[PCI ] 440FX PMC write to PAM register 59 (TLB Flush)
00001033711i[P2I ] PCI IRQ routing: PIRQA# set to 0x0b
00001033735i[P2I ] PCI IRQ routing: PIRQB# set to 0x09
00001033759i[P2I ] PCI IRQ routing: PIRQC# set to 0x0b
00001033783i[P2I ] PCI IRQ routing: PIRQD# set to 0x09
00001033793i[P2I ] write: ELCR2 = 0x0a
00001034572i[BIOS ] PIIX3/PIIX4 init: elcr=00 0a
00001042252i[BIOS ] PCI: bus=0 devfn=0x00: vendor_id=0x8086 device_id=0x1237 class=0x0600
00001044531i[BIOS ] PCI: bus=0 devfn=0x08: vendor_id=0x8086 device_id=0x7000 class=0x0601
00001046649i[BIOS ] PCI: bus=0 devfn=0x09: vendor_id=0x8086 device_id=0x7010 class=0x0101
00001046878i[PIDE ] new BM-DMA address: 0xc000
00001047498i[BIOS ] region 4: 0x0000c000
00001049532i[BIOS ] PCI: bus=0 devfn=0x0b: vendor_id=0x8086 device_id=0x7113 class=0x0680
00001049762i[ACPI ] new irq line = 11
00001049776i[ACPI ] new irq line = 9
00001049803i[ACPI ] new PM base address: 0xb000
00001049817i[ACPI ] new SM base address: 0xb100
00001049845i[PCI ] setting SMRAM control register to 0x4a
00001213939i[CPU0 ] Enter to System Management Mode
00001213939i[CPU0 ] enter_system_management_mode: temporary disable VMX while in SMM mode
00001213949i[CPU0 ] RSM: Resuming from System Management Mode
00001377970i[PCI ] setting SMRAM control register to 0x0a
00001392872i[BIOS ] MP table addr=0x000fa510 MPC table addr=0x000fa440 size=0xc8
00001394687i[BIOS ] SMBIOS table addr=0x000fa520
00001394738i[MEM0 ] allocate_block: block=0x1f used 0x2 of 0x20
00001397666i[BIOS ] Firmware waking vector 0x1ff00cc
00001402525i[BIOS ] ACPI tables: RSDP addr=0x000fa640 ACPI DATA addr=0x01ff0000 size=0x1f22
00001402562i[PCI ] 440FX PMC write to PAM register 59 (TLB Flush)
00001403293i[BIOS ] bios_table_cur_addr: 0x000fa664
00001530911i[VBIOS] VGABios $Id: vgabios.c,v 1.75 2011/10/15 14:07:21 vruppert Exp $
00001530982i[BXVGA] VBE known Display Interface b0c0
00001531014i[BXVGA] VBE known Display Interface b0c5
00001533939i[VBIOS] VBE Bios $Id: vbe.c,v 1.64 2011/07/19 18:25:05 vruppert Exp $
00001600001i[XGUI ] charmap update. Font Height is 16
00001878416i[BIOS ] ata0-0: PCHS=121/16/63 translation=none LCHS=121/16/63
00005755622i[BIOS ] IDE time out
00017824970i[BIOS ] Booting from 0000:7c00
00018039045i[MEM0 ] allocate_block: block=0x1 used 0x3 of 0x20
00018163955i[MEM0 ] allocate_block: block=0x2 used 0x4 of 0x20
00020096916i[MEM0 ] allocate_block: block=0x11 used 0x5 of 0x20
00027116000p[XGUI ] >>PANIC<< POWER button turned off.
00027116000i[CPU0 ] CPU is in protected mode (active)
00027116000i[CPU0 ] CS.mode = 32 bit
00027116000i[CPU0 ] SS.mode = 32 bit
00027116000i[CPU0 ] EFER = 0x00000000
00027116000i[CPU0 ] | EAX=c00122b0 EBX=00000000 ECX=c0011b00 EDX=c0119024
00027116000i[CPU0 ] | ESP=c0119d10 EBP=c0119d20 ESI=00000000 EDI=00000000
00027116000i[CPU0 ] | IOPL=0 id vip vif ac vm rf nt of df if tf SF zf af pf cf
00027116000i[CPU0 ] | SEG sltr(index|ti|rpl) base limit G D
00027116000i[CPU0 ] | CS:0008( 0001| 0| 0) 00000000 ffffffff 1 1
00027116000i[CPU0 ] | DS:0033( 0006| 0| 3) 00000000 ffffffff 1 1
00027116000i[CPU0 ] | SS:0010( 0002| 0| 0) 00000000 ffffffff 1 1
00027116000i[CPU0 ] | ES:0033( 0006| 0| 3) 00000000 ffffffff 1 1
00027116000i[CPU0 ] | FS:0033( 0006| 0| 3) 00000000 ffffffff 1 1
00027116000i[CPU0 ] | GS:0000( 0000| 0| 0) 00000000 00000000 0 0
00027116000i[CPU0 ] | EIP=c00019f2 (c00019f2)
00027116000i[CPU0 ] | CR0=0xe0000011 CR2=0x00000000
00027116000i[CPU0 ] | CR3=0x00100000 CR4=0x00000000
00027116000i[CMOS ] Last time is 1507256903 (Fri Oct 6 10:28:23 2017)
00027116000i[XGUI ] Exit
00027116000i[CTRL ] quit_sim called with exit code 1
00000000000p[HD ] >>PANIC<< ata0-0: could not open hard drive image file 'hd60M.img'
00000000000i[CPU0 ] CPU is in real mode (active)
00000000000i[CPU0 ] CS.mode = 16 bit
00000000000i[CPU0 ] SS.mode = 16 bit
00000000000i[CPU0 ] EFER = 0x00000000
00000000000i[CPU0 ] | EAX=00000000 EBX=00000000 ECX=00000000 EDX=00000000
00000000000i[CPU0 ] | ESP=00000000 EBP=00000000 ESI=00000000 EDI=00000000
00000000000i[CPU0 ] | IOPL=0 id vip vif ac vm rf nt of df if tf sf ZF af PF cf
00000000000i[CPU0 ] | SEG sltr(index|ti|rpl) base limit G D
00000000000i[CPU0 ] | CS:0000( 0000| 0| 0) 00000000 00000000 0 0
00000000000i[CPU0 ] | DS:0000( 0000| 0| 0) 00000000 00000000 0 0
00000000000i[CPU0 ] | SS:0000( 0000| 0| 0) 00000000 00000000 0 0
00000000000i[CPU0 ] | ES:0000( 0000| 0| 0) 00000000 00000000 0 0
00000000000i[CPU0 ] | FS:0000( 0000| 0| 0) 00000000 00000000 0 0
00000000000i[CPU0 ] | GS:0000( 0000| 0| 0) 00000000 00000000 0 0
00000000000i[CPU0 ] | EIP=00000000 (00000000)
00000000000i[CPU0 ] | CR0=0x00000000 CR2=0x00000000
00000000000i[CPU0 ] | CR3=0x00000000 CR4=0x00000000
00000000000i[MEM0 ] allocate_block: block=0x0 used 0x1 of 0x20
00000000000i[CTRL ] quit_sim called with exit code 1
Loading

0 comments on commit aac31b5

Please sign in to comment.