summaryrefslogtreecommitdiffstats
path: root/sys/arm/mv
diff options
context:
space:
mode:
authorwma <wma@FreeBSD.org>2017-05-19 08:26:41 +0000
committerLuiz Souza <luiz@netgate.com>2017-09-06 11:35:44 -0500
commitd730a018c48bef442ca0a4339991030e73da6073 (patch)
tree5c92debf42ce0f37608794066f0935ab09260adc /sys/arm/mv
parent74ee194f003c8ee625adbcdd40c8a16d97f93b3a (diff)
downloadFreeBSD-src-d730a018c48bef442ca0a4339991030e73da6073.zip
FreeBSD-src-d730a018c48bef442ca0a4339991030e73da6073.tar.gz
Fix boot up on ARMADA38X uniprocessor variant
Marvell Armada 380 is a uni-processor variant of the 38x SoC family. A function platform_mp_setmaxid() was setting a hardcoded value, which caused boot fail on A380. Fix this by relying on the CPU count obtained from device tree nodes. Submitted by: Marcin Wojtas <mw@semihalf.com Obtained from: Semihalf Sponsored by: Netgate Reviewed by: loos Differential revision: https://reviews.freebsd.org/D10783 (cherry picked from commit e77dc5266b5a252931a0f7302a09776485840053)
Diffstat (limited to 'sys/arm/mv')
-rw-r--r--sys/arm/mv/armada38x/armada38x_mp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/arm/mv/armada38x/armada38x_mp.c b/sys/arm/mv/armada38x/armada38x_mp.c
index 8dc404f..ab655023 100644
--- a/sys/arm/mv/armada38x/armada38x_mp.c
+++ b/sys/arm/mv/armada38x/armada38x_mp.c
@@ -127,7 +127,7 @@ platform_mp_setmaxid(void)
/* Armada38x family supports maximum 2 cores */
mp_ncpus = platform_cnt_cpus();
- mp_maxid = 1;
+ mp_maxid = mp_ncpus - 1;
}
void
OpenPOWER on IntegriCloud