summaryrefslogtreecommitdiffstats
path: root/cf-code/cf-fsi-fw.S
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2018-06-03 17:56:39 +1000
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2018-06-03 17:56:39 +1000
commit89c52c81f64f50f8bac5f4531f17f86d2df96165 (patch)
treeae6b55d044836e959bade308ffc150373707a87e /cf-code/cf-fsi-fw.S
parenteef619c3896af87edd776f174bcd704aa7a1d262 (diff)
downloadcf-fsi-89c52c81f64f50f8bac5f4531f17f86d2df96165.tar.gz
cf-fsi-89c52c81f64f50f8bac5f4531f17f86d2df96165.zip
Move code/vectors to after definitions
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'cf-code/cf-fsi-fw.S')
-rw-r--r--cf-code/cf-fsi-fw.S50
1 files changed, 28 insertions, 22 deletions
diff --git a/cf-code/cf-fsi-fw.S b/cf-code/cf-fsi-fw.S
index f1cf874..b58fcc2 100644
--- a/cf-code/cf-fsi-fw.S
+++ b/cf-code/cf-fsi-fw.S
@@ -1,25 +1,3 @@
- .text
-
-_vecs:
- /* Vectors */
- .org 0
-
- /* Boot vector */
- .long 0x0ffff0 /* Stack below 1M */
- .long 0x400 /* Start code */
-
- /*
- * Remaining 254 vectors point to corresponding stubs
- * starting at 0x10000, 0x10 bytes each
- */
- .rept 254
-0: .long 0x10000 + (0b - _vecs) * 4
- .endr
-
- /* Main entry */
- .org 0x400
- .global _start
-_start:
.equ SRAM_BASE_BE, 0x320000
.equ SRAM_BASE_LE, 0x720000
.equ GPIO_BASE, 0x780000
@@ -183,6 +161,34 @@ _start:
.endif
.endm
+ /*
+ * Beginning of code
+ */
+
+ .text
+ .org 0
+
+ /*
+ * m68k exception Vectors
+ */
+_vecs:
+ /* Boot vector */
+ .long 0x0ffff0 /* Stack below 1M */
+ .long 0x400 /* Start code */
+
+ /* Remaining 254 vectors point to corresponding stubs
+ * starting at 0x10000, 0x10 bytes each
+ */
+ .rept 254
+0: .long 0x10000 + (0b - _vecs) * 4
+ .endr
+
+ /*
+ * Main entry point
+ */
+ .org 0x400
+ .global _start
+_start:
/* Get base addresses */
movea.l #SRAM_BASE_BE,%a0
movea.l #GPIO_BASE,%a4
OpenPOWER on IntegriCloud