From d1f5419788fbf033ba901e49c548da32a04a41aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20Fr=C3=B6schle?= Date: Wed, 1 May 2013 14:32:23 +0000 Subject: [PATCH] baked everything together (trap #0 handler) --- BaS_gcc/bas.lk.in | 2 ++ BaS_gcc/sources/exceptions.S | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/BaS_gcc/bas.lk.in b/BaS_gcc/bas.lk.in index b029720..667f3b8 100644 --- a/BaS_gcc/bas.lk.in +++ b/BaS_gcc/bas.lk.in @@ -44,6 +44,8 @@ SECTIONS objs/exceptions.o(.text) objs/supervisor.o(.text) objs/illegal_instruction.o(.text) + objs/xhdi_sd.o(.text) + objs/xhdi_interface.o(text) *(.data) *(.bss) diff --git a/BaS_gcc/sources/exceptions.S b/BaS_gcc/sources/exceptions.S index 396c5c6..acf494f 100644 --- a/BaS_gcc/sources/exceptions.S +++ b/BaS_gcc/sources/exceptions.S @@ -20,6 +20,7 @@ .extern _video_tlb .extern _video_sbt .extern cpusha + .extern _xhdi_sd_install /* trap #0 exception vector for installation of xhdi SD card driver */ /* Register read/write macros */ #define MCF_MMU_MMUCR __MMUBAR @@ -221,6 +222,9 @@ init_vec_loop: subq.l #1,d0 bne init_vec_loop + lea _xhdi_sd_install,a0 + move.l a0,0x80 // trap #0 exception vector + move.l #__SUP_SP,(a0) lea reset_vector(pc),a1 move.l a1,0x04(a0)