diff options
author | Wesley W. Terpstra <wesley@sifive.com> | 2017-04-05 16:27:19 -0700 |
---|---|---|
committer | Wesley W. Terpstra <wesley@sifive.com> | 2017-04-05 17:25:21 -0700 |
commit | 8b4421bacba28f97da2ddeb6a6fba9e184e91bee (patch) | |
tree | d4d3cad1671503a47ae6e56821da8e69f2793da0 /machine/mtrap.c | |
parent | 91636ac4639a7993c485288d34f1c8e22b1980b4 (diff) | |
download | riscv-pk-8b4421bacba28f97da2ddeb6a6fba9e184e91bee.zip riscv-pk-8b4421bacba28f97da2ddeb6a6fba9e184e91bee.tar.gz riscv-pk-8b4421bacba28f97da2ddeb6a6fba9e184e91bee.tar.bz2 |
bbl: prevent named cores from booting
Diffstat (limited to 'machine/mtrap.c')
-rw-r--r-- | machine/mtrap.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/machine/mtrap.c b/machine/mtrap.c index d7def4c..be264f3 100644 --- a/machine/mtrap.c +++ b/machine/mtrap.c @@ -50,6 +50,7 @@ void printm(const char* s, ...) static void send_ipi(uintptr_t recipient, int event) { + if (((HART_MASK >> recipient) & 1)) return; atomic_or(&OTHER_HLS(recipient)->mipi_pending, event); mb(); *OTHER_HLS(recipient)->ipi = 1; |