summaryrefslogtreecommitdiffstats
path: root/sys/mips/malta
diff options
context:
space:
mode:
authoradrian <adrian@FreeBSD.org>2015-11-22 02:40:19 +0000
committeradrian <adrian@FreeBSD.org>2015-11-22 02:40:19 +0000
commit8de74081252e18202c5d7a846e3f5f863b57fcff (patch)
tree00ff9cb02bfdb972b2d8e59516a4e31313dc713d /sys/mips/malta
parent3e47d7787e11a9c7ff46ef18a77c71ec4d2a6293 (diff)
downloadFreeBSD-src-8de74081252e18202c5d7a846e3f5f863b57fcff.zip
FreeBSD-src-8de74081252e18202c5d7a846e3f5f863b57fcff.tar.gz
[mips]: Don't hard-code PHYS_AVAIL_ENTRIES.
Diffstat (limited to 'sys/mips/malta')
-rw-r--r--sys/mips/malta/malta_machdep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/mips/malta/malta_machdep.c b/sys/mips/malta/malta_machdep.c
index 85abb92..b31ba2f 100644
--- a/sys/mips/malta/malta_machdep.c
+++ b/sys/mips/malta/malta_machdep.c
@@ -177,7 +177,7 @@ mips_init(unsigned long memsize, uint64_t ememsize)
{
int i;
- for (i = 0; i < 10; i++) {
+ for (i = 0; i < PHYS_AVAIL_ENTRIES; i++) {
phys_avail[i] = 0;
}
OpenPOWER on IntegriCloud