aboutsummaryrefslogtreecommitdiffstats
path: root/com32/modules
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2009-05-29 15:10:28 -0700
committerH. Peter Anvin <hpa@zytor.com>2009-05-29 15:10:28 -0700
commit7dc10450ddf0cafad0e145683b56f2b2e4805639 (patch)
tree5dca991b041bc8dee1b5d3afa8e55c1940616220 /com32/modules
parentd45e7c2053dcc91e089a182be6b1ecb6eebce470 (diff)
downloadsyslinux.git-7dc10450ddf0cafad0e145683b56f2b2e4805639.tar.gz
syslinux.git-7dc10450ddf0cafad0e145683b56f2b2e4805639.tar.xz
syslinux.git-7dc10450ddf0cafad0e145683b56f2b2e4805639.zip
Run Nindent on com32/modules/cpuidtest.c
Automatically reformat com32/modules/cpuidtest.c using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'com32/modules')
-rw-r--r--com32/modules/cpuidtest.c130
1 files changed, 83 insertions, 47 deletions
diff --git a/com32/modules/cpuidtest.c b/com32/modules/cpuidtest.c
index cf07f207..bfc1c190 100644
--- a/com32/modules/cpuidtest.c
+++ b/com32/modules/cpuidtest.c
@@ -41,58 +41,94 @@ char display_line;
int main(void)
{
- s_cpu cpu;
- openconsole(&dev_stdcon_r, &dev_stdcon_w);
+ s_cpu cpu;
+ openconsole(&dev_stdcon_r, &dev_stdcon_w);
- for (;;) {
+ for (;;) {
detect_cpu(&cpu);
- printf("Vendor = %s\n",cpu.vendor);
- printf("Model = %s\n",cpu.model);
- printf("Vendor ID = %d\n",cpu.vendor_id);
- printf("Family = %d\n",cpu.family);
- printf("Model ID = %d\n",cpu.model_id);
- printf("Stepping = %d\n",cpu.stepping);
+ printf("Vendor = %s\n", cpu.vendor);
+ printf("Model = %s\n", cpu.model);
+ printf("Vendor ID = %d\n", cpu.vendor_id);
+ printf("Family = %d\n", cpu.family);
+ printf("Model ID = %d\n", cpu.model_id);
+ printf("Stepping = %d\n", cpu.stepping);
printf("Flags = ");
- if (cpu.flags.fpu) printf("fpu ");
- if (cpu.flags.vme) printf("vme ");
- if (cpu.flags.de) printf("de ");
- if (cpu.flags.pse) printf("pse ");
- if (cpu.flags.tsc) printf("tsc ");
- if (cpu.flags.msr) printf("msr ");
- if (cpu.flags.pae) printf("pae ");
- if (cpu.flags.mce) printf("mce ");
- if (cpu.flags.cx8) printf("cx8 ");
- if (cpu.flags.apic) printf("apic ");
- if (cpu.flags.sep) printf("sep ");
- if (cpu.flags.mtrr) printf("mtrr ");
- if (cpu.flags.pge) printf("pge ");
- if (cpu.flags.mca) printf("mca ");
- if (cpu.flags.cmov) printf("cmov ");
- if (cpu.flags.pat) printf("pat ");
- if (cpu.flags.pse_36) printf("pse_36 ");
- if (cpu.flags.psn) printf("psn ");
- if (cpu.flags.clflsh) printf("clflsh ");
- if (cpu.flags.dts) printf("dts ");
- if (cpu.flags.acpi) printf("acpi ");
- if (cpu.flags.mmx) printf("mmx ");
- if (cpu.flags.sse) printf("sse ");
- if (cpu.flags.sse2) printf("sse2 ");
- if (cpu.flags.ss) printf("ss ");
- if (cpu.flags.htt) printf("ht ");
- if (cpu.flags.acc) printf("acc ");
- if (cpu.flags.syscall) printf("syscall ");
- if (cpu.flags.mp) printf("mp ");
- if (cpu.flags.nx) printf("nx ");
- if (cpu.flags.mmxext) printf("mmxext ");
- if (cpu.flags.lm) printf("lm ");
- if (cpu.flags.nowext) printf("3dnowext ");
- if (cpu.flags.now) printf("3dnow! ");
+ if (cpu.flags.fpu)
+ printf("fpu ");
+ if (cpu.flags.vme)
+ printf("vme ");
+ if (cpu.flags.de)
+ printf("de ");
+ if (cpu.flags.pse)
+ printf("pse ");
+ if (cpu.flags.tsc)
+ printf("tsc ");
+ if (cpu.flags.msr)
+ printf("msr ");
+ if (cpu.flags.pae)
+ printf("pae ");
+ if (cpu.flags.mce)
+ printf("mce ");
+ if (cpu.flags.cx8)
+ printf("cx8 ");
+ if (cpu.flags.apic)
+ printf("apic ");
+ if (cpu.flags.sep)
+ printf("sep ");
+ if (cpu.flags.mtrr)
+ printf("mtrr ");
+ if (cpu.flags.pge)
+ printf("pge ");
+ if (cpu.flags.mca)
+ printf("mca ");
+ if (cpu.flags.cmov)
+ printf("cmov ");
+ if (cpu.flags.pat)
+ printf("pat ");
+ if (cpu.flags.pse_36)
+ printf("pse_36 ");
+ if (cpu.flags.psn)
+ printf("psn ");
+ if (cpu.flags.clflsh)
+ printf("clflsh ");
+ if (cpu.flags.dts)
+ printf("dts ");
+ if (cpu.flags.acpi)
+ printf("acpi ");
+ if (cpu.flags.mmx)
+ printf("mmx ");
+ if (cpu.flags.sse)
+ printf("sse ");
+ if (cpu.flags.sse2)
+ printf("sse2 ");
+ if (cpu.flags.ss)
+ printf("ss ");
+ if (cpu.flags.htt)
+ printf("ht ");
+ if (cpu.flags.acc)
+ printf("acc ");
+ if (cpu.flags.syscall)
+ printf("syscall ");
+ if (cpu.flags.mp)
+ printf("mp ");
+ if (cpu.flags.nx)
+ printf("nx ");
+ if (cpu.flags.mmxext)
+ printf("mmxext ");
+ if (cpu.flags.lm)
+ printf("lm ");
+ if (cpu.flags.nowext)
+ printf("3dnowext ");
+ if (cpu.flags.now)
+ printf("3dnow! ");
printf("\n");
printf("SMP = ");
- if (cpu.flags.smp) printf("yes\n");
- else printf("no\n");
+ if (cpu.flags.smp)
+ printf("yes\n");
+ else
+ printf("no\n");
break;
- }
+ }
- return 0;
+ return 0;
}