Small asm cleanups
PATCH 1/1 Small asm cleanups
Changes two asm's to use appropriate macros, and relaxes constraints on another.
Signature · 1 line
Brian Gerst
arch/i386/kernel/traps.c +1 -1
@@ -697,7 +697,7 @@*/ asmlinkage void math_state_restore(struct pt_regs regs) { - __asm__ __volatile__("clts" );/* Allow maths ops (or we recurse) */ +clts ();/* Allow maths ops (or we recurse) */ if (current->used_math) {restore_fpu (current);
arch/i386/mm/init.c +1 -1
@@ -333,7 +333,7 @@ {pagetable_init (); - __asm__("movl %%ecx,%%cr3\n" ::"c" (__pa (swapper_pg_dir))); + __asm__("movl %0,%%cr3\n" ::"r" (__pa (swapper_pg_dir)));#if CONFIG_X86_PAE /*
drivers/net/hamradio/baycom_epp.c +2 -1
@@ -807,10 +807,11 @@/* --------------------------------------------------------------------- */ #ifdef __i386__ +#include <asm/msr.h> #define GETTICK (x) \ ({ \ if (cpu_has_tsc) \ - __asm__ __volatile__("rdtsc" : "=a" (x) : : "dx");\ + rdtscl(x); \ })#else /* __i386__ */ #define GETTICK (x)