lkml.org 
[lkml]   [1998]   [Dec]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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/

\
 
 \ /
  Last update: 2005-03-22 13:46    [W:0.105 / U:0.936 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site