summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile2
-rw-r--r--cf-code/cf-fsi-fw.S2
2 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 5269b5c..ed3b57a 100644
--- a/Makefile
+++ b/Makefile
@@ -20,7 +20,7 @@ M68KCPPFLAGS = -DFW_VERSION=$(FW_VERSION)
ifeq ($(DEBUG),1)
M68KCPPFLAGS += -DENABLE_TRACE
endif
-M68KAFLAGS = -march=isac
+M68KAFLAGS = -march=isac --pcrel -k
M68KLDFLAGS = -Ttext 0
# FW code files
diff --git a/cf-code/cf-fsi-fw.S b/cf-code/cf-fsi-fw.S
index 3d70efc..6089448 100644
--- a/cf-code/cf-fsi-fw.S
+++ b/cf-code/cf-fsi-fw.S
@@ -228,7 +228,7 @@ _start:
move.l %d0,%a1@(INT_CNT)
/* Install external interrupt vector */
- lea _int,%a0
+ lea %pc@(_int),%a0
move.l %a0,(0x46*4)
/* Mask interrupts */
OpenPOWER on IntegriCloud