diff options
author | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2002-06-21 06:26:51 +0000 |
---|---|---|
committer | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2002-06-21 06:26:51 +0000 |
commit | e6efcfa19f71e6434b3e62b3252bee4446f2d102 (patch) | |
tree | 0067f4316ae1c3c631adc9ec0f5a0f736bc69617 /sys | |
parent | 13b19323e16521f5dec30c3b58c14936f3411403 (diff) |
configure HID0, and show cache status for IBM750FX. from netbsd
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/macppc/macppc/cpu.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/sys/arch/macppc/macppc/cpu.c b/sys/arch/macppc/macppc/cpu.c index f88cce5133f..092ef496f2a 100644 --- a/sys/arch/macppc/macppc/cpu.c +++ b/sys/arch/macppc/macppc/cpu.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cpu.c,v 1.7 2002/06/21 00:00:05 itojun Exp $ */ +/* $OpenBSD: cpu.c,v 1.8 2002/06/21 06:26:50 itojun Exp $ */ /* * Copyright (c) 1997 Per Fogelstrom @@ -188,6 +188,7 @@ cpuattach(parent, dev, aux) case MPC603e: case MPC750: case MPC7400: + case IBM750FX: case MPC7410: case MPC7450: case MPC7455: @@ -198,7 +199,7 @@ cpuattach(parent, dev, aux) asm ("mtspr %0,1008" : "=r" (hid0)); /* if processor is G3 or G4, configure l2 cache */ - if ( (cpu == MPC750) || (cpu == MPC7400) + if ( (cpu == MPC750) || (cpu == MPC7400) || (cpu == IBM750FX) || (cpu == MPC7410) || (cpu == MPC7450) || (cpu == MPC7455)) { config_l2cr(cpu); } @@ -293,7 +294,9 @@ config_l2cr(int cpu) if (l3cr & L3CR_L3E) printf(", %cMB L3 cache", l3cr & L3CR_L3SIZ ? '2' : '1'); - } else { + } else if (cpu == IBM750FX) + printf(": 512KB L2 cache"); + else { switch (l2cr & L2CR_L2SIZ) { case L2SIZ_256K: printf(": 256KB"); |