Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 Aug 1999 10:58:45 -0500
From:      Jonathan Lemon <jlemon@americantv.com>
To:        Mike Smith <msmith@FreeBSD.ORG>
Cc:        Maxim Sobolev <sobomax@altavista.net>, current@FreeBSD.ORG
Subject:   Re: APM related panic
Message-ID:  <19990803105845.19595@right.PCS>
In-Reply-To: <199908020520.WAA01521@dingo.cdrom.com>; from Mike Smith on Aug 08, 1999 at 10:20:38PM -0700
References:  <37A22819.DD36695B@altavista.net> <199908020520.WAA01521@dingo.cdrom.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Aug 08, 1999 at 10:20:38PM -0700, Mike Smith wrote:
> 
> Jonathan; just some context, this is with your old 16-bit-protmode 
> patches, spiffed up for -current, which I committed late last week.

Heh.  I had just about forgotten about this patchset.  I was somwehat
under the impression it wasn't needed any more, what with the capabilities
of the new loader.


> > apm: CS_limit=0x0, DS_limit=0x0
> 
> These limits look pretty suspect, although the code segment below looks 
> OK.

Yea, I see the later commits that force it to 0xffff; that is probably 
for the best, rather than trusting the BIOS.


> > Fatal trap 9: general protection fault while in kernel mode
> > instruction pointer = 0x48:0x8034
> > stack pointer         = 0x10:0xc0279e98
> > frame pointer         = 0x10:0x67890000
> > code segment  = base 0xc00f0000, limit 0xffff, type 0x1b
> >    = DPL 0, pres 1, def32 1, gran 0
> > processor eflags = interrupt enabled, resume, IOPL = 0
> 
> Why is IOPL zero?  I've also noted that making a bios16 call also 
> results in IOPL being zero (I have more that I want to take up with you 
> on that at some stage, since it's got me stumped, but one thing at a 
> time).

The IOPL should be zero, in order to virtualize interrupts.  If it's
more than zero, the BIOS code can turn off interrupts, which isn't
something we want to do.
--
Jonathan


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




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