Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Jul 1997 11:59:11 +0930 (CST)
From:      Michael Smith <msmith@atrad.adelaide.edu.au>
To:        jehamby@be.com (Jake Hamby)
Cc:        msmith@atrad.adelaide.edu.au, hackers@FreeBSD.ORG
Subject:   Re: Anyone tried VirtualPC with FreeBSD?
Message-ID:  <199707290229.LAA09521@genesis.atrad.adelaide.edu.au>
In-Reply-To: <19970728152416.PM-jriro5pm@Adam.BeOS> from Jake Hamby at "Jul 28, 97 03:24:16 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
Jake Hamby stands accused of saying:
> >> >> Fatal trap 1:  privileged instruction fault while in kernel mode
> >> >> instruction ptr = 0x8:0xf01b99aa
...
> I'm using the BOOTMFS kernel from the FreeBSD 2.2.2 RELEASE.  Here are the
> symbols near the area of the crash:
> 
> f01b98e4 t _calibrate_clocks
> f01b9a90 t _set_timer_freq

Ok.  This may be the wrmsr() call :

wrmsr(u_int msr, quad_t newval)
{
        __asm __volatile(".byte 0x0f, 0x30" : : "A" (newval), "c" (msr));
}

which is conditional on the CPU type reported being a P5 or P6, which
is what it claims to be.

It would be very interesting if you were to build a GENERIC kernel,
stick it on a bootstrap-enabled floppy (do you know how to build a
bootable FreeBSD floppy? ask if not), and modify calibrate_clocks in
sys/i386/isa/clock.c to remove the wrmsr() call.

You might also try removing the code that calls rdtsc() towards the
bottom.

> hardware that Virtual PC simulates (from the manual).  It's important to
> keep in mind that this is an all-software emulator: despite the detailed
> chipset listing, there is no actual PC hardware involved!

Yeah.  The evidence so far suggests that their emulation may not be
quite as complete as they claim.  Please keep us posted!

-- 
]] Mike Smith, Software Engineer        msmith@gsoft.com.au             [[
]] Genesis Software                     genesis@gsoft.com.au            [[
]] High-speed data acquisition and      (GSM mobile)     0411-222-496   [[
]] realtime instrument control.         (ph)          +61-8-8267-3493   [[
]] Unix hardware collector.             "Where are your PEZ?" The Tick  [[



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199707290229.LAA09521>