hal: ia32: apply clang-format to cpu.c file
JIRA:
@@ -42,8 +42,7 @@ u32 cpu_getEFLAGS(void)
{
u32 eflags;
- __asm__ volatile
- (" \
+ __asm__ volatile(" \
pushf; \
popl %0"
: "=a"(eflags));
@@ -68,7 +67,9 @@ int hal_cpuDebugGuard(u32 enable, u32 slot)
else
cpu.dr5 &= ~mask;
- __asm__ volatile ("movl %0, %%dr5" : : "r" (cpu.dr5));
+ __asm__ volatile("movl %0, %%dr5"
+ :
+ : "r"(cpu.dr5));
return EOK;
}
@@ -250,7 +251,9 @@ void *_cpu_initCore(void)
cpu.tss[hal_cpuGetID()].esp0 = (u32)&cpu.stacks[hal_cpuGetID()][511];
/* Set task register */
- __asm__ volatile ("ltr %%ax" : : "a" ((4 + cpu.ncpus) * 8));
+ __asm__ volatile("ltr %%ax"
+ :
+ : "a"((4 + cpu.ncpus) * 8));
return (void *)cpu.tss[hal_cpuGetID()].esp0;
}
@@ -273,7 +276,8 @@ void _hal_cpuInitCores(void)
for (;;) {
k = cpu.ncpus;
i = 0;
- while ((cpu.ncpus == k) && (++i < 50000000));
+ while ((cpu.ncpus == k) && (++i < 50000000))
+ ;
if (i >= 50000000)
break;
}
@@ -349,7 +353,9 @@ static const struct cpu_feature_t cpufeatures[] = {
{ "smep", 7, 1, 7 }, /* SMEP */
{ "smap", 7, 1, 20 }, /* SMAP */
{ "nx", -1, 3, 20 }, /* page execute disable bit */
- { NULL, }
+ {
+ NULL,
+ }
};
