[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-3.1-testing] minios: Fix get_current() inline asm.
# HG changeset patch # User Keir Fraser <keir@xxxxxxxxxxxxx> # Date 1192523420 -3600 # Node ID bae8d8151242959f4c3bbc40e465dd0ba57c6a7b # Parent 23f88841a36106d3c9f2914422001c8e994d403d minios: Fix get_current() inline asm. From: Samuel Thibault <samuel.thibault@xxxxxxxxxxxxx> Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx> xen-unstable changeset: 16114:d915111f8246bacfda168effafade68e1262e7cb xen-unstable date: Tue Oct 16 09:30:20 2007 +0100 --- extras/mini-os/include/x86/arch_sched.h | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff -r 23f88841a361 -r bae8d8151242 extras/mini-os/include/x86/arch_sched.h --- a/extras/mini-os/include/x86/arch_sched.h Mon Oct 15 14:03:08 2007 +0100 +++ b/extras/mini-os/include/x86/arch_sched.h Tue Oct 16 09:30:20 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; } _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |