From 89c52c81f64f50f8bac5f4531f17f86d2df96165 Mon Sep 17 00:00:00 2001 From: Benjamin Herrenschmidt Date: Sun, 3 Jun 2018 17:56:39 +1000 Subject: Move code/vectors to after definitions Signed-off-by: Benjamin Herrenschmidt --- cf-code/cf-fsi-fw.S | 50 ++++++++++++++++++++++++++++---------------------- 1 file changed, 28 insertions(+), 22 deletions(-) (limited to 'cf-code') 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 -- cgit v1.2.1