diff options
author | Otto Moerbeek <otto@cvs.openbsd.org> | 2005-03-10 19:24:31 +0000 |
---|---|---|
committer | Otto Moerbeek <otto@cvs.openbsd.org> | 2005-03-10 19:24:31 +0000 |
commit | ae9950faedfc2b8a793bb603ec84fc6d70736317 (patch) | |
tree | e5b04217fd93b5410919c63e40e3b688413b3816 /sys/arch/macppc | |
parent | 1716a81245e9076b6bd905a499a460aed73271e9 (diff) |
Recognize 7447A processor, as found in the Mac mini; print
rev number in hex explicitly. ok deraadt@ drahn@
Diffstat (limited to 'sys/arch/macppc')
-rw-r--r-- | sys/arch/macppc/macppc/cpu.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/arch/macppc/macppc/cpu.c b/sys/arch/macppc/macppc/cpu.c index 5edd4b21901..d66295d10f4 100644 --- a/sys/arch/macppc/macppc/cpu.c +++ b/sys/arch/macppc/macppc/cpu.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cpu.c,v 1.20 2004/11/18 16:10:10 miod Exp $ */ +/* $OpenBSD: cpu.c,v 1.21 2005/03/10 19:24:30 otto Exp $ */ /* * Copyright (c) 1997 Per Fogelstrom @@ -133,6 +133,9 @@ cpuattach(struct device *parent, struct device *dev, void *aux) case PPC_CPU_MPC7400: snprintf(cpu_model, sizeof(cpu_model), "7400"); break; + case PPC_CPU_MPC7447A: + snprintf(cpu_model, sizeof(cpu_model), "7447A"); + break; case PPC_CPU_IBM750FX: snprintf(cpu_model, sizeof(cpu_model), "750FX"); break; @@ -154,7 +157,7 @@ cpuattach(struct device *parent, struct device *dev, void *aux) } snprintf(cpu_model + strlen(cpu_model), sizeof(cpu_model) - strlen(cpu_model), - " (Revision %x)", pvr & 0xffff); + " (Revision 0x%x)", pvr & 0xffff); printf(": %s", cpu_model); /* This should only be executed on openfirmware systems... */ |