ia64/xen-unstable

changeset 3911:2d1350c497e9

bitkeeper revision 1.1236.1.12 (421da2beCWorg82h5pKlUfgL04gvhA)

Fix x86/64 get_stack_bottom().
Signed-off-by: Keir Fraser <keir.fraser@cl.cam.ac.uk>
author kaf24@scramble.cl.cam.ac.uk
date Thu Feb 24 09:47:42 2005 +0000 (2005-02-24)
parents 185d934d0b74
children 8a3a22b2096e
files xen/include/asm-x86/x86_64/current.h
line diff
     1.1 --- a/xen/include/asm-x86/x86_64/current.h	Thu Feb 24 09:39:38 2005 +0000
     1.2 +++ b/xen/include/asm-x86/x86_64/current.h	Thu Feb 24 09:47:42 2005 +0000
     1.3 @@ -41,8 +41,9 @@ static inline execution_context_t *get_e
     1.4  static inline unsigned long get_stack_bottom(void)
     1.5  {
     1.6      unsigned long p;
     1.7 -    __asm__ ( "orq %%rsp,%0; andq $~7,%0" 
     1.8 -              : "=r" (p) : "0" (STACK_SIZE-64) );
     1.9 +    __asm__( "andq %%rsp,%0; addq %2,%0"
    1.10 +	    : "=r" (p)
    1.11 +	    : "0" (~(STACK_SIZE-1)), "i" (STACK_SIZE-64) );
    1.12      return p;
    1.13  }
    1.14