diff options
author | Palmer Dabbelt <palmer@dabbelt.com> | 2017-08-02 10:29:44 -0700 |
---|---|---|
committer | Palmer Dabbelt <palmer@dabbelt.com> | 2017-08-02 12:32:45 -0700 |
commit | 298984cbe6ffd7ab8507fa40e15199c7d5386aab (patch) | |
tree | 0f4e8b669c46c49a6f345b31b962613ebfb96026 /machine/minit.c | |
parent | 62effc6bfe4f1a7e8a771c49966c4ab7755d6612 (diff) | |
download | pk-298984cbe6ffd7ab8507fa40e15199c7d5386aab.zip pk-298984cbe6ffd7ab8507fa40e15199c7d5386aab.tar.gz pk-298984cbe6ffd7ab8507fa40e15199c7d5386aab.tar.bz2 |
Move DISABLED_HART_MASK to the platform
Some platforms can't boot Linux on all the harts. This commit allows
platforms to define the set of harts that should be prevented from
booting past BBL. This is essentially just a new mechanism for defining
the DISABLED_HART_MASK.
Diffstat (limited to 'machine/minit.c')
-rw-r--r-- | machine/minit.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/machine/minit.c b/machine/minit.c index e78bbbb..0fb5f21 100644 --- a/machine/minit.c +++ b/machine/minit.c @@ -4,6 +4,7 @@ #include "fp_emulation.h" #include "fdt.h" #include "uart.h" +#include "platform_interface.h" #include <string.h> #include <limits.h> @@ -123,7 +124,7 @@ static void hart_plic_init() static void wake_harts() { for (int hart = 0; hart < MAX_HARTS; ++hart) - if ((((~DISABLED_HART_MASK & hart_mask) >> hart) & 1)) + if ((((~platform__disabled_hart_mask & hart_mask) >> hart) & 1)) *OTHER_HLS(hart)->ipi = 1; // wakeup the hart } |