diff --git a/bas.lk.in b/bas.lk.in index b029720..667f3b8 100644 --- a/bas.lk.in +++ b/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/sources/exceptions.S b/sources/exceptions.S index 396c5c6..acf494f 100644 --- a/sources/exceptions.S +++ b/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)