diff -r 3746b3d4f301 extras/mini-os/include/x86/arch_sched.h --- a/extras/mini-os/include/x86/arch_sched.h Thu Feb 22 15:26:21 2007 +0000 +++ b/extras/mini-os/include/x86/arch_sched.h Mon Oct 15 17:23:01 2007 +0100 @@ -7,9 +7,9 @@ static inline struct thread* get_current { struct thread **current; #ifdef __i386__ - __asm__("andl %%esp,%0; ":"=r" (current) : "r" (~8191UL)); + __asm__("andl %%esp,%0; ":"=r" (current) : "0" (~8191UL)); #else - __asm__("andq %%rsp,%0; ":"=r" (current) : "r" (~8191UL)); + __asm__("andq %%rsp,%0; ":"=r" (current) : "0" (~8191UL)); #endif return *current; }