aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWesley W. Terpstra <wesley@sifive.com>2017-04-06 10:48:46 -0700
committerWesley W. Terpstra <wesley@sifive.com>2017-04-06 10:48:46 -0700
commit8197cad40c5af8e4e315429be9f20aefbcc803ee (patch)
treef31fd7f64d1234df1bf367b5c4399c4b432eb64e
parenta2c8937e631f7531c3d59e4f179369f51eb44d19 (diff)
downloadriscv-pk-8197cad40c5af8e4e315429be9f20aefbcc803ee.zip
riscv-pk-8197cad40c5af8e4e315429be9f20aefbcc803ee.tar.gz
riscv-pk-8197cad40c5af8e4e315429be9f20aefbcc803ee.tar.bz2
mtrap: allow override of DISABLED_HART_MASK from CFLAGS
-rw-r--r--machine/mtrap.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/machine/mtrap.h b/machine/mtrap.h
index 16453d7..df71797 100644
--- a/machine/mtrap.h
+++ b/machine/mtrap.h
@@ -10,7 +10,9 @@
#endif
// These harts will be prevented from booting beyond bbl
+#ifndef DISABLED_HART_MASK
#define DISABLED_HART_MASK 0x0UL
+#endif
#ifndef __ASSEMBLER__