Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Jun 2003 10:53:06 +0200
From:      Alan Robinson <alan.robinson@fujitsu-siemens.com>
To:        Marcel Moolenaar <marcel@xcllnt.net>
Cc:        freebsd-ia64@freebsd.org
Subject:   Re: DDB and SMP causes Unaligned Reference
Message-ID:  <20030610105306.A18863@fujitsu-siemens.com>
In-Reply-To: <20030606182015.GC569@dhcp01.pn.xcllnt.net>; from marcel@xcllnt.net on Fri, Jun 06, 2003 at 11:20:15AM -0700
References:  <20030606183130.A19592@fujitsu-siemens.com> <20030606182015.GC569@dhcp01.pn.xcllnt.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Jun 06, 2003 at 11:20:15AM -0700, Marcel Moolenaar wrote:
> On Fri, Jun 06, 2003 at 06:31:30PM +0200, Alan Robinson wrote:
> > 
> > The cr.iip points into swapctx (or savectx) which was called from
> > from interrupt() as follows....
> > 
> >         } else if (vector == ipi_vector[IPI_STOP]) {
> >                 u_int32_t mybit = PCPU_GET(cpumask);
> > 
> >                 CTR1(KTR_SMP, "IPI_STOP, cpuid=%d", PCPU_GET(cpuid));
> >                 savectx(PCPU_GET(pcb));
> 
> We don't set pc_pcb on ia64. The line above should read:
> 	savectx(curthread->td_pcb);
> 
Tried it.
> 
> Try it and let me know if it works. I'll commit it then.
> 
Works.
Works.
(It still causes the strange double entry into DDB)

It would also be a good idea to remove the unneeded pc_pcb line with its
incorrect comment from src/sys/ia64/include/pcpu.h

Alan



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