Date: Tue, 9 Oct 2001 18:43:09 +0100 (BST) From: Doug Rabson <dfr@nlsystems.com> To: John Baldwin <jhb@FreeBSD.org> Cc: <ia64@FreeBSD.org> Subject: Re: ast() patch Message-ID: <Pine.BSF.4.33.0110091841370.82292-100000@herring.nlsystems.com> In-Reply-To: <XFMail.011009102905.jhb@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 9 Oct 2001, John Baldwin wrote: > > On 09-Oct-01 Doug Rabson wrote: > > On Mon, 8 Oct 2001, John Baldwin wrote: > > > >> Ok, now that you all have gotten ia64 farther along, perhaps one of you can > >> test and fix this patch to make the kernel call ast() when returing to > >> userland. This should fix things like SIGARLM, userland profiling, and a > >> few > >> other nits: > >> > >> http://www.freebsd.org/~jhb/ia64_ast.patch > > > > This can't possibly work. At this point, the processor is running with > > interrupts and interrupt collection disabled. It also has data translation > > turned off. In this state, we can't risk calling any normal code because > > we can't cope with any exceptions. > > > > You will have to arrange to call ast() before the 'rsm psr.ic|...' line. > > Ah, hmm, ok. ast() should return with interrupts disabled btw. (It returns > inside of a critical section.) Hmmm. I'm a bit out of my depth here. :( Its ok for it to return with interrupts disabled. We would disable them anyway during the body of exception_restore and the rfi instruction will enable them when it copies cr.ipsr to psr. -- Doug Rabson Mail: dfr@nlsystems.com Phone: +44 20 8348 6160 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ia64" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.33.0110091841370.82292-100000>
