Source-Changes-D archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/sys/arch/amd64/amd64



In article <20090717053517.GA10900%netbsd.org@localhost>,
David Holland  <dholland-sourcechanges%netbsd.org@localhost> wrote:
>On Thu, Jul 16, 2009 at 10:18:09AM -0400, Christos Zoulas wrote:
> > Modified Files:
> >     src/sys/arch/amd64/amd64: trap.c
> > 
> > Log Message:
> > handle protection fault properly.
>
>Shouldn't the non-DIAGNOSTIC default case set ksi_signo to something
>other than 0? I'm not entirely sure what trapsignal will do with
>signal 0, but I doubt it's the right thing.

Well, if you fall in the default case in both switch statements it is clearly
a bug (because you added another case in the outside switch and you forgot
to add it in the inside). I could remove the DIAGNOSTIC check, but that
leads to bloat.

christos



Home | Main Index | Thread Index | Old Index