Kevin Lawton wrote:
>
> ftp://ftp.plex86.org/pub/plex86/plex86-2000_0722b.tar.gz
> ftp://ftp.plex86.org/pub/plex86/linux.img
> ftp://ftp.plex86.org/pub/plex86/initrd.img
Hey Kevin,
Great work! Some comments:
(1) Thanks for moving all the emulation stuff into
a separate subdir. It makes it look much more
cleaned up :)
(2) It wouldn't compile for me at first. I had
to change the following in nexus.S:
ljmp (unlike jmp) shouldn't take a '*' before
its argument, as it always takes a fixed address
(as opposed to a relative one) anyway. Just
remove the * (lines 188 and 283).
(3) Wow, it sure is SLOW! Timed:
[ramon@milo user]$ time ./plex86
Processing command-line options
Processing configuration script plex86.conf
Opening VM (/dev/plex86)
[...]
image_load: '../../initrd.img', size=1474560 read into memory at 00e80000
init_ioctl set to linux
bios: loading guest code: ../../linux.img (468488 bytes) (BIN)
Setting guest CPU parameters for 'linux'
Running VM
bochs: timer0 period set to 99 hz
.....Fatal monitor error caused Panic
[...]
Closing VM
35.21user 89.51system 2:05.20elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (778major+244minor)pagefaults 0swaps
[ramon@milo user]$
For two minutes the screen is just blank. Then
I get the linux startup text and it crashes
immediately.
Two minutes is a LOT. I know everything is
far from optimal, but perhaps you can explain
what you are currently doing so unoptimally,
that fixing it will bring down about 2 minutes
of processing time on this 350MHZ AMD to an
acceptable amount (less than a second, at least)?
If this turns out to be impossible, I guess we'll
need to do some serious thinking about the
performance issue.
-- Ramon