Messages in this thread | | | Date | Wed, 16 Dec 1998 02:26:47 +0100 | From | ralf@uni-kobl ... | Subject | Re: [PATCH] 2.1.131: i386 tweak to switch_to() |
| |
On Tue, Dec 15, 1998 at 02:04:47AM +0100, Andrea Arcangeli wrote:
> On Sat, 12 Dec 1998, Jamie Lokier wrote: > > >+ :"ebx", "ecx", "esi", "edi", "cc", "memory"); \ > ^^^^^^^^^^^^^^ > > What is "cc" and why we need to declare "memory" clobbered after using > __switch_to()?
The scheduler is running on the current thread's kernel stack but the current pointer is being changed in switch_to(). So any values gcc might have stored on the stack will now have to be refetched from memory as schedule() might otherwise continue with stale values.
Ralf
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |