aboutsummaryrefslogtreecommitdiff
path: root/bbl
diff options
context:
space:
mode:
authorPalmer Dabbelt <palmer@dabbelt.com>2017-08-02 10:29:44 -0700
committerPalmer Dabbelt <palmer@dabbelt.com>2017-08-02 12:32:45 -0700
commit298984cbe6ffd7ab8507fa40e15199c7d5386aab (patch)
tree0f4e8b669c46c49a6f345b31b962613ebfb96026 /bbl
parent62effc6bfe4f1a7e8a771c49966c4ab7755d6612 (diff)
downloadpk-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 'bbl')
-rw-r--r--bbl/bbl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/bbl/bbl.c b/bbl/bbl.c
index 5ee95ad..b0a862d 100644
--- a/bbl/bbl.c
+++ b/bbl/bbl.c
@@ -5,6 +5,7 @@
#include "bits.h"
#include "config.h"
#include "fdt.h"
+#include "platform_interface.h"
#include <string.h>
static const void* entry_point;
@@ -23,7 +24,7 @@ static void filter_dtb(uintptr_t source)
memcpy((void*)dest, (void*)source, size);
// Remove information from the chained FDT
- filter_harts(dest, DISABLED_HART_MASK);
+ filter_harts(dest, platform__disabled_hart_mask);
filter_plic(dest);
filter_compat(dest, "riscv,clint0");
filter_compat(dest, "riscv,debug-013");