Kevin Lawton wrote:
> 
> Don't switch into protected mode, otherwise you'll hit a panic.
> No bid deal; I just haven't added this yet.
> 
> If you hit some code where an instruction needs to be virtualized
> and it isn't emulated yet, you'll also hit a panic.

Ok, I'm trying to boot from a dos boot flop (image) in order to see how
the vga bios is used. (- maybe a generic "int" logger plugin would be
usefull (I will prob. write something like that), that way I'll be able
to see what kind of int 10h calls are used (ie. by dos) so I can see if
I can at least create a "bare minimum" VGA Bios..).

The problem at the moment is that I get a panic (hey!). Unfortunately I
don't know if there is something else wrong that causes the boot process
to fail or maybe some instruction isn't virt/emulated yet. (As far as I
can tell it crashes sometime after the VGA BIOS initialises, since I see
the VGA BIOS (C) in my kernel log file).

[japj@darius user]$ ./plex86
Processing command-line options
Opening VM (/dev/plex86)
Processing configuration script plex86.conf
Allocating 16MB of physical memory in VM
Mapping virtualized physical memory into monitor
Zeroing virtualized physical memory
bochs: ips = 1000000
unmapped_c::init: IGNORING unmapped ports
bochs: [cmos] Setting initial clock to: Tue Aug  8 21:52:41 2000
bochs: Opening image for device 0
bochs: bx_options.floppy_command_delay = 500
vga construct static
bochs: font_width = 8
bochs: font_height = 16
bochs: default_depth = 16
bochs: waiting for MapNotify
bochs: MapNotify found.
bochs: vga: interval=300000
vga init called
bochs: TTY not used, serial port is not connected
ROM: loading image '../bios/BIOS-plex86-2000_0802a' @ 0xf0000 (65536
bytes)
ROM: loading image '../../VGABIOS-elpin-2.20' @ 0xc0000 (32768 bytes)
Setting prescan depth to 3
Initializing plugins
Running VM
bochs: timer0 period set to 18 hz
bochs: CMOS: write reg 14h: value = 05h
bochs: vga: io write: 3cf: reg 05: value = 10h
bochs: vga: io write: 3da: ignoring: feature ctrl & vert sync
bochs: *** io read 3c5 case 1: sequencer clocking mode
bochs: vga: io write 3c0: address mode reg=16
bochs: vga: io write 3c0: address mode reg=17
bochs: vga: io write 3c0: address mode reg=18
bochs: vga: io write 3c0: address mode reg=19
bochs: vga: io write 3c0: address mode reg=20
bochs: *** io read 3c5 case 1: sequencer clocking mode
bochs: vga: io write: 3cf: reg 05: value = 10h
bochs: *** io read 3c5 case 1: sequencer clocking mode
bochs: floppy io: cylinder request != current cylinder
bochs: floppy io: cylinder request != current cylinder
bochs: floppy io: cylinder request != current cylinder
bochs: floppy io: cylinder request != current cylinder
bochs: floppy io: cylinder request != current cylinder
Fatal monitor error caused Panic
 
Abort due to exception 13 at 74de:000017c3
 
Register dump:
 CS:74de SS:74de DS:0070 ES:8c92 FS:0000 GS:0000
 EAX:000074de EBX:00001492 ECX:000010a0 EDX:00000000
 ESI:000032d0 EDI:00008fbf EBP:00001009 ESP:000017c2 EFLAGS:00000286
 
Stack dump:
Current instruction:
 74DE.000017C3  0100                     add     dword ptr [eax], eax
 
Shutting down plugins
bochs: Note: X11: bx_gui_c::exit() not implemented yet.
Unmapping guest physical memory
Tearing down VM
Closing VM
[japj@darius user]$

Reply via email to