summaryrefslogtreecommitdiffstats
path: root/cf-code
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2018-06-11 12:00:52 +1000
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2018-06-11 12:00:52 +1000
commiteb7b14b2ca04dfd2b719572dbea92300106683ad (patch)
treeb0e0715eab6deb29d3cf865f81cf69a01e4f763b /cf-code
parent2382b0b51d6dc9a4fe5cabfdfedff1fe5166a058 (diff)
downloadcf-fsi-eb7b14b2ca04dfd2b719572dbea92300106683ad.tar.gz
cf-fsi-eb7b14b2ca04dfd2b719572dbea92300106683ad.zip
Move stack down into the code section
This will make it easier to share the reserved memory from Linux as the ucode is now fully self contained. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'cf-code')
-rw-r--r--cf-code/cf-fsi-fw.S11
1 files changed, 9 insertions, 2 deletions
diff --git a/cf-code/cf-fsi-fw.S b/cf-code/cf-fsi-fw.S
index 323ee56..4b5c9bf 100644
--- a/cf-code/cf-fsi-fw.S
+++ b/cf-code/cf-fsi-fw.S
@@ -5,6 +5,8 @@
.equ GPIO_BASE, 0x780000
.equ CVIC_BASE, 0x6c2000
+ .equ STACK_SIZE, 0x100 /* 256 bytes of stack is enough */
+
.equ CVIC_STATUS, 0x00
.equ CVIC_SW_IRQ_CLR, 0x1c
.equ CVIC_SW_IRQ, 0x2
@@ -145,8 +147,8 @@
*/
_vecs:
/* Boot vector */
- .long 0x0ffff0 /* Stack below 1M */
- .long 0x400 /* Start code */
+ .long _stack_top /* Stack below 1M */
+ .long _start /* Start code */
/* Remaining 254 vectors point to corresponding stubs
* starting at 0x10000, 0x10 bytes each
@@ -543,3 +545,8 @@ _bad_exceptions:
move.b #STAT_ERR_INVAL_IRQ,%a1@(STAT_REG)
halt
.endr
+
+ /* Stack */
+ .balign 0x10
+ .space STACK_SIZE
+_stack_top:
OpenPOWER on IntegriCloud