diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2008-01-22 11:19:40 +0000 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2008-01-22 11:19:40 +0000 |
commit | c6c6a0890d23024c78426352d3da55aec2e472d5 (patch) | |
tree | b172491e9ebaa98a8eef9887ce29bfe7c4f4703c /extras/mini-os/include/x86 | |
parent | 956eabb460f52d24bd983731cdef07a3cf0bdc82 (diff) | |
download | xen-c6c6a0890d23024c78426352d3da55aec2e472d5.tar.gz xen-c6c6a0890d23024c78426352d3da55aec2e472d5.tar.bz2 xen-c6c6a0890d23024c78426352d3da55aec2e472d5.zip |
minios: Fix x86_32 compilation
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
Diffstat (limited to 'extras/mini-os/include/x86')
-rw-r--r-- | extras/mini-os/include/x86/arch_sched.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extras/mini-os/include/x86/arch_sched.h b/extras/mini-os/include/x86/arch_sched.h index b2b2556ffb..877440762e 100644 --- a/extras/mini-os/include/x86/arch_sched.h +++ b/extras/mini-os/include/x86/arch_sched.h @@ -12,7 +12,7 @@ static inline struct thread* get_current(void) #else register unsigned long sp asm("rsp"); #endif - current = (void *)(sp & ~(STACK_SIZE-1)); + current = (void *)(unsigned long)(sp & ~(STACK_SIZE-1)); return *current; } |