From 2f566bc49939797413284234c9aac1ce3021ce0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20Fr=C3=B6schle?= Date: Wed, 1 May 2013 14:40:47 +0000 Subject: [PATCH] fixed writing the trap #0 vector to the wrong location... --- sources/exceptions.S | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sources/exceptions.S b/sources/exceptions.S index acf494f..46ab535 100644 --- a/sources/exceptions.S +++ b/sources/exceptions.S @@ -222,9 +222,6 @@ 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) @@ -269,6 +266,8 @@ init_vec_loop: move.l a1,0xdc(a0) no_protect_vectors: + lea _xhdi_sd_install,a1 + move.l a1,0x80(a0) // trap #0 exception vector // int 1-7 lea irq1(pc),a1