summaryrefslogtreecommitdiff
path: root/identify.c
diff options
context:
space:
mode:
authorDave Jones <davej@redhat.com>2008-07-02 17:21:24 -0400
committerDave Jones <davej@redhat.com>2008-07-02 17:21:24 -0400
commitf1a3e8c56b4d7531a0fe653ea07e5c38e2374a6c (patch)
tree72dc2395ac3e2d7866b7e5661f9c63347aa32d3c /identify.c
parent2a2efcf4e8fbe86c830da29cbb437144dc25bbe5 (diff)
Move register dumping out of show_info into its own file
Another step towards killing off show_info
Diffstat (limited to 'identify.c')
-rw-r--r--identify.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/identify.c b/identify.c
index 95fd055..0cded6f 100644
--- a/identify.c
+++ b/identify.c
@@ -50,33 +50,11 @@ void identify(struct cpudata *cpu)
}
}
-static void dumpregs(int cpunum, unsigned int begin, unsigned int end)
-{
- unsigned int i;
- unsigned int eax, ebx, ecx, edx;
-
- /* Dump all the CPUID results in raw hex */
- for (i=begin; i<=end; i++) {
- cpuid(cpunum, i, &eax, &ebx, &ecx, &edx);
- printf("eax in: 0x%08x, eax = %08x ebx = %08x ecx = %08x edx = %08x\n", i, eax, ebx, ecx, edx);
- }
- printf("\n");
-}
-
void show_info(struct cpudata *cpu)
{
if (silent)
return;
- if (show_registers) {
- dumpregs(cpu->number, 0, cpu->maxi);
- if (cpu->maxei >=0x80000000)
- dumpregs (cpu->number, 0x80000000, cpu->maxei);
-
- if (cpu->maxei2 >=0xC0000000)
- dumpregs (cpu->number, 0xC0000000, cpu->maxei2);
- }
-
switch (cpu->vendor) {
case VENDOR_AMD:
display_AMD_info(cpu);