From 0da520b6e624f59a30613e9fa424140d8ef6f12c 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... --- BaS_gcc/sources/exceptions.S | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/BaS_gcc/sources/exceptions.S b/BaS_gcc/sources/exceptions.S index acf494f..46ab535 100644 --- a/BaS_gcc/sources/exceptions.S +++ b/BaS_gcc/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