ia64/xen-unstable

changeset 16135:d915111f8246

minios: Fix get_current() inline asm.
From: Samuel Thibault <samuel.thibault@xensource.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
author Keir Fraser <keir@xensource.com>
date Tue Oct 16 09:30:20 2007 +0100 (2007-10-16)
parents 07c8b97ee1af
children 05337cb5206f
files extras/mini-os/include/x86/arch_sched.h
line diff
     1.1 --- a/extras/mini-os/include/x86/arch_sched.h	Mon Oct 15 14:03:08 2007 +0100
     1.2 +++ b/extras/mini-os/include/x86/arch_sched.h	Tue Oct 16 09:30:20 2007 +0100
     1.3 @@ -7,9 +7,9 @@ static inline struct thread* get_current
     1.4  {
     1.5      struct thread **current;
     1.6  #ifdef __i386__    
     1.7 -    __asm__("andl %%esp,%0; ":"=r" (current) : "r" (~8191UL));
     1.8 +    __asm__("andl %%esp,%0; ":"=r" (current) : "0" (~8191UL));
     1.9  #else
    1.10 -    __asm__("andq %%rsp,%0; ":"=r" (current) : "r" (~8191UL));
    1.11 +    __asm__("andq %%rsp,%0; ":"=r" (current) : "0" (~8191UL));
    1.12  #endif 
    1.13      return *current;
    1.14  }