__switch_to macro

2001-04-06 Thread alad
Hi, The note above __switch_to macro in i386/kernel/process.c says that we no more use hardware context switching as some problems in recovering from saved state that is no longer valid. (I am peeking into 2.2 kernel). Now I have following questions 1) What exactly is meant by '

Re: __switch_to macro

2001-04-06 Thread Jamie Lokier
[EMAIL PROTECTED] wrote: > 1) What exactly is meant by ' stale segment register values' in the note. > 2) In the above macro, I think we recover gracefully from error >condition while recovering fs and gs segment registers . The >loadsegment(fs,next->tss.fs) and loadsegment(gs,next->tss.gs

Re: __switch_to macro

2001-04-06 Thread alad
Jamie Lokier <[EMAIL PROTECTED]> on 04/06/2001 03:18:13 PM To: Amol Lad/HSS@HSS cc: [EMAIL PROTECTED] Subject: Re: __switch_to macro [EMAIL PROTECTED] wrote: > 1) What exactly is meant by ' stale segment register values' in the note. > 2) In the above mac

Re: __switch_to macro

2001-04-06 Thread Jamie Lokier
[EMAIL PROTECTED] wrote: > There's one thing that confuses me: don't you get a segment_not_present > fault? If so, traps.c's do_segment_not_present doesn't appear to search > the exception table, and the code in loadsegment would not work. > > >>> well.. I peeked into traps.c.. I do seem a call