aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorChristian Cunningham <cc@localhost>2022-02-20 16:33:09 -0700
committerChristian Cunningham <cc@localhost>2022-02-20 16:33:09 -0700
commit59b137e5888004266ec988f72ffe91de4d53bd97 (patch)
tree7c676ede66c2f4052bbf02f13362211b1c2ce186 /include
parent871d1663aba635dd41c48e7def0a58c5267fd1e7 (diff)
Stack initialization macro
Diffstat (limited to 'include')
-rw-r--r--include/macros.inc15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/macros.inc b/include/macros.inc
index 7d2f10f..18573af 100644
--- a/include/macros.inc
+++ b/include/macros.inc
@@ -44,3 +44,18 @@
pop {r0-r12}
cps #0x13 // Svc mode
.endm
+
+.macro core_stacks coreid
+ .space 4096
+undefined_stack_core\coreid:
+ .space 4096
+svc_stack_core\coreid:
+ .space 4096
+data_stack_core\coreid:
+ .space 4096
+irq_stack_core\coreid:
+ .space 4096
+fiq_stack_core\coreid:
+ .space 4096
+sys_stack_core\coreid:
+.endm