diff --git a/headers/private/kernel/arch/x86/arch_cpu.h b/headers/private/kernel/arch/x86/arch_cpu.h index 87d355b4ca..3596edf7b6 100644 --- a/headers/private/kernel/arch/x86/arch_cpu.h +++ b/headers/private/kernel/arch/x86/arch_cpu.h @@ -108,35 +108,35 @@ void i386_fxsave_swap(void *old_fpu_state, void *new_fpu_state); __asm__("movl %%dr3,%0" : "=r" (value)) #define write_dr3(value) \ - __asm__("movl %0,%%dr3" :: "r" (value)) + __asm__("movl %0,%%dr3" : : "r" (value)) #define invalidate_TLB(va) \ __asm__("invlpg (%0)" : : "r" (va)) #define out8(value,port) \ -__asm__ ("outb %%al,%%dx"::"a" (value),"d" (port)) +__asm__ ("outb %%al,%%dx" : : "a" (value), "d" (port)) #define out16(value,port) \ -__asm__ ("outw %%ax,%%dx"::"a" (value),"d" (port)) +__asm__ ("outw %%ax,%%dx" : : "a" (value), "d" (port)) #define out32(value,port) \ -__asm__ ("outl %%eax,%%dx"::"a" (value),"d" (port)) +__asm__ ("outl %%eax,%%dx" : : "a" (value), "d" (port)) #define in8(port) ({ \ unsigned char _v; \ -__asm__ volatile ("inb %%dx,%%al":"=a" (_v):"d" (port)); \ +__asm__ volatile ("inb %%dx,%%al" : "=a" (_v) : "d" (port)); \ _v; \ }) #define in16(port) ({ \ unsigned short _v; \ -__asm__ volatile ("inw %%dx,%%ax":"=a" (_v):"d" (port)); \ +__asm__ volatile ("inw %%dx,%%ax":"=a" (_v) : "d" (port)); \ _v; \ }) #define in32(port) ({ \ unsigned int _v; \ -__asm__ volatile ("inl %%dx,%%eax":"=a" (_v):"d" (port)); \ +__asm__ volatile ("inl %%dx,%%eax":"=a" (_v) : "d" (port)); \ _v; \ }) @@ -144,14 +144,14 @@ _v; \ __asm__ ("outb %%al,%%dx\n" \ "\tjmp 1f\n" \ "1:\tjmp 1f\n" \ - "1:"::"a" (value),"d" (port)) + "1:" : : "a" (value), "d" (port)) #define in8_p(port) ({ \ unsigned char _v; \ __asm__ volatile ("inb %%dx,%%al\n" \ "\tjmp 1f\n" \ "1:\tjmp 1f\n" \ - "1:":"=a" (_v):"d" (port)); \ + "1:" : "=a" (_v) : "d" (port)); \ _v; \ })