diff options
Diffstat (limited to 'i386/include')
-rw-r--r-- | i386/include/mach/i386/cthreads.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/i386/include/mach/i386/cthreads.h b/i386/include/mach/i386/cthreads.h index 62a29cb..e10cda3 100644 --- a/i386/include/mach/i386/cthreads.h +++ b/i386/include/mach/i386/cthreads.h @@ -48,9 +48,7 @@ typedef volatile int spin_lock_t; _r__; })) #define cthread_sp() \ - ({ int _sp__; \ - __asm__("movl %%esp, %0" \ - : "=g" (_sp__) ); \ + ({ register unsigned long _sp__ __asm__("esp"); \ _sp__; }) #endif /* __GNUC__ */ |