summaryrefslogtreecommitdiff
path: root/src/cpu/amd/sc520/sc520.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cpu/amd/sc520/sc520.c')
-rw-r--r--src/cpu/amd/sc520/sc520.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cpu/amd/sc520/sc520.c b/src/cpu/amd/sc520/sc520.c
index 2ec3f5a47e..fef3c7f0ab 100644
--- a/src/cpu/amd/sc520/sc520.c
+++ b/src/cpu/amd/sc520/sc520.c
@@ -151,7 +151,7 @@ static void pci_domain_set_resources(device_t dev)
// int i;
int idx;
#if 0
- for(rambits = 0, i = 0; i < sizeof(ramregs)/sizeof(ramregs[0]); i++) {
+ for(rambits = 0, i = 0; i < ARRAY_SIZE(ramregs); i++) {
unsigned char reg;
reg = pci_read_config8(mc_dev, ramregs[i]);
/* these are ENDING addresses, not sizes.