Subject: Re: strange traps on i386
To: Andrew Doran <ad@netbsd.org>
From: David Young <dyoung@pobox.com>
List: port-i386
Date: 08/09/2007 18:52:44
On Fri, Aug 10, 2007 at 12:46:06AM +0100, Andrew Doran wrote:
> On Thu, Aug 09, 2007 at 06:36:18PM -0500, David Young wrote:
> 
> > Here is another trap, this time on an instruction boundary.  Isn't it
> > an innocuous instruction, though?
> 
> subl on %esp shouldn't fault, ever. From what I remember %esp is considered
> special in a few of places by x86 but by and large it's a general purpose
> register. What's the instruction before that?

db> examine/i in_pcbdisconnect,100
netbsd:in_pcbdisconnect:        pushl   %ebp
netbsd:in_pcbdisconnect+0x1:    movl    %esp,%ebp
netbsd:in_pcbdisconnect+0x3:    pushl   %ebx
netbsd:in_pcbdisconnect+0x4:    subl    $0x4,%esp

Dave

-- 
David Young             OJC Technologies
dyoung@ojctech.com      Urbana, IL * (217) 278-3933 ext 24