summaryrefslogtreecommitdiff
path: root/platforms
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@jvnv.net>2022-09-10 17:10:09 +0200
committerVegard Storheil Eriksen <zyp@jvnv.net>2022-09-10 17:10:09 +0200
commit2d75a9be32e2510ff32d331c33178c4625a53054 (patch)
tree52375aa3a1be6468184733ab4ea50d232001d9c7 /platforms
parent59b94427c591e7ec4603b2d9dd6753b1b0927175 (diff)
riscv: Add critical section.
Diffstat (limited to 'platforms')
-rw-r--r--platforms/cortex-m.yaml3
-rw-r--r--platforms/riscv.yaml3
2 files changed, 6 insertions, 0 deletions
diff --git a/platforms/cortex-m.yaml b/platforms/cortex-m.yaml
index ea77615..0a15611 100644
--- a/platforms/cortex-m.yaml
+++ b/platforms/cortex-m.yaml
@@ -21,6 +21,9 @@
toolchains:
- arm-none-eabi
+ define:
+ - CORTEX_M
+
# cortex-m3
- match:
cpu: !re cortex-m3
diff --git a/platforms/riscv.yaml b/platforms/riscv.yaml
index ec9ecd7..16db64b 100644
--- a/platforms/riscv.yaml
+++ b/platforms/riscv.yaml
@@ -36,3 +36,6 @@
toolchains:
- riscv64-unknown-elf
+
+ define:
+ - RISCV