From 1e45a1148f4d5a66357b71c630686c655f674cd6 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Mon, 20 Nov 2006 22:40:33 +0000 Subject: 2006-11-20 Samuel Thibault Asm tidy. * i386/i386/fpe_linkage.c (disable_fpe): Gather dependent asm statements, add `ax' clobber. (fpe_exception_fixup): Drop bogus cast from input parameter of lcall asm statement. * i386/i386/pio.h (inw, outw): Drop 0x66 prefix an just use the w instruction variant. * i386/i386/proc_reg.h: (get_eflags, get_tr, get_ldt): Drop useless "volatile" from asm statement. (get_esp): Use direct asm register specification. * i386/include/mach/i386/cthreads.h (cthread_sp): Likewise. * i386/intel/pmap.c (pmap_unmap_page_zero): Fix asm clobber into `eax'. De4x5 probe fixup. * linux/src/drivers/net/de4x5.c (pci_probe): Make probe loop stop on any error, not only device not found. --- i386/include/mach/i386/cthreads.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'i386/include') 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__ */ -- cgit v1.2.3