Port-i386 archive

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

Re: i386 lazy pmap switching in trap.c



> On Fri, Feb 08, 2008 at 09:14:44PM +0000, David Laight wrote:
> > On Fri, Feb 08, 2008 at 08:00:17PM +0000, David Laight wrote:
> > > Am I missing something?
> > 
> > Yes ... we need that pmap_load() because we've (probably) slept in
> > uvm_fault().
> 
> Related though, why the retry loop in DO_DEFERRED_SWITCH_RETRY ?
> 
>       David
> 
> -- 
> David Laight: david%l8s.co.uk@localhost

the intention of the loop was to be friendly with future in-kernel preemption.
onfault_handler() can't detect if the lwp is preempted during pmap_load().

YAMAMOTO Takashi



Home | Main Index | Thread Index | Old Index