diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2010-10-23 22:35:15 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2010-10-23 22:35:15 +0200 |
commit | 2a0f24569247734c89cc4d1997366f3ee9d0e7cb (patch) | |
tree | a06faceea3ddb7b80ab6f5348cc910899df96d1a /i386 | |
parent | 7a15847bcca5c7b384556226130330cd33903c12 (diff) |
Warn on unknown CPU family
* i386/i386at/model_dep.c (c_boot_entry): Warn in the default case for
cpu_type.
Diffstat (limited to 'i386')
-rw-r--r-- | i386/i386at/model_dep.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/i386/i386at/model_dep.c b/i386/i386at/model_dep.c index f915db1..dcf506d 100644 --- a/i386/i386at/model_dep.c +++ b/i386/i386at/model_dep.c @@ -575,8 +575,9 @@ void c_boot_entry(vm_offset_t bi) switch (cpu_type) { - case 3: default: + printf("warning: unknown cpu type %d, assuming i386\n", cpu_type); + case 3: machine_slot[0].cpu_type = CPU_TYPE_I386; break; case 4: |