summaryrefslogtreecommitdiff
path: root/i386/i386at/model_dep.c
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2023-05-06 15:32:04 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2023-05-06 15:32:04 +0200
commit7b392afb14358649173437fe435859ce7887cba6 (patch)
tree2d3c09cb4b62ebc3c48f0b0d4690cb3caf7852b9 /i386/i386at/model_dep.c
parentfdd1b1900e48c852fc89144bf574b6831b305bea (diff)
x86_64: Add CPU_TYPE_X86_64 CPU type
Diffstat (limited to 'i386/i386at/model_dep.c')
-rw-r--r--i386/i386at/model_dep.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/i386/i386at/model_dep.c b/i386/i386at/model_dep.c
index f40a6169..491915da 100644
--- a/i386/i386at/model_dep.c
+++ b/i386/i386at/model_dep.c
@@ -549,6 +549,9 @@ void c_boot_entry(vm_offset_t bi)
machine_slot[0].is_cpu = TRUE;
machine_slot[0].cpu_subtype = CPU_SUBTYPE_AT386;
+#ifdef __x86_64__
+ machine_slot[0].cpu_type = CPU_TYPE_X86_64;
+#else
switch (cpu_type)
{
default:
@@ -567,6 +570,7 @@ void c_boot_entry(vm_offset_t bi)
machine_slot[0].cpu_type = CPU_TYPE_PENTIUMPRO;
break;
}
+#endif
/*
* Start the system.