baked everything together (trap #0 handler)
This commit is contained in:
@@ -44,6 +44,8 @@ SECTIONS
|
|||||||
objs/exceptions.o(.text)
|
objs/exceptions.o(.text)
|
||||||
objs/supervisor.o(.text)
|
objs/supervisor.o(.text)
|
||||||
objs/illegal_instruction.o(.text)
|
objs/illegal_instruction.o(.text)
|
||||||
|
objs/xhdi_sd.o(.text)
|
||||||
|
objs/xhdi_interface.o(text)
|
||||||
*(.data)
|
*(.data)
|
||||||
*(.bss)
|
*(.bss)
|
||||||
|
|
||||||
|
|||||||
@@ -20,6 +20,7 @@
|
|||||||
.extern _video_tlb
|
.extern _video_tlb
|
||||||
.extern _video_sbt
|
.extern _video_sbt
|
||||||
.extern cpusha
|
.extern cpusha
|
||||||
|
.extern _xhdi_sd_install /* trap #0 exception vector for installation of xhdi SD card driver */
|
||||||
|
|
||||||
/* Register read/write macros */
|
/* Register read/write macros */
|
||||||
#define MCF_MMU_MMUCR __MMUBAR
|
#define MCF_MMU_MMUCR __MMUBAR
|
||||||
@@ -221,6 +222,9 @@ init_vec_loop:
|
|||||||
subq.l #1,d0
|
subq.l #1,d0
|
||||||
bne init_vec_loop
|
bne init_vec_loop
|
||||||
|
|
||||||
|
lea _xhdi_sd_install,a0
|
||||||
|
move.l a0,0x80 // trap #0 exception vector
|
||||||
|
|
||||||
move.l #__SUP_SP,(a0)
|
move.l #__SUP_SP,(a0)
|
||||||
lea reset_vector(pc),a1
|
lea reset_vector(pc),a1
|
||||||
move.l a1,0x04(a0)
|
move.l a1,0x04(a0)
|
||||||
|
|||||||
Reference in New Issue
Block a user