This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: VSR_TABLE
- To: "Suzuki,RyosIII" <ryos at sinby dot com>
- Subject: Re: [ECOS] VSR_TABLE
- From: Jesper Skov <jskov at redhat dot com>
- Date: 27 Feb 2001 13:00:18 +0100
- Cc: ecos-discuss at sources dot redhat dot com
- References: <p04320401b6bfb1e21a4d@[192.168.0.2]>
>>>>> "Suzuki,RyosIII" == Suzuki,RyosIII <ryos@sinby.com> writes:
Suzuki,RyosIII> in orignal source, jump to
Suzuki,RyosIII> cyg_hal_default_exception_vsr on SH4 when a interrupt
Suzuki,RyosIII> is occured.
Yes, but your fix is wrong. Try the below with your platform.
Jesper
Index: ChangeLog
===================================================================
RCS file: /local/cvsfiles/ecc/ecc/hal/sh/cq7750/current/ChangeLog,v
retrieving revision 1.7
diff -u -5 -r1.7 ChangeLog
--- ChangeLog 2001/01/31 16:38:07 1.7
+++ ChangeLog 2001/02/27 11:58:57
@@ -1,5 +1,9 @@
+2001-02-27 Jesper Skov <jskov@redhat.com>
+
+ * include/platform.inc: Init correct vector with interrupt VSR.
+
2001-01-31 Jesper Skov <jskov@redhat.com>
* src/hal_diag.c: Included private parts of serial driver.
2001-01-26 Jesper Skov <jskov@redhat.com>
Index: include/platform.inc
===================================================================
RCS file: /local/cvsfiles/ecc/ecc/hal/sh/cq7750/current/include/platform.inc,v
retrieving revision 1.4
diff -u -5 -r1.4 platform.inc
--- include/platform.inc 2001/01/23 09:35:48 1.4
+++ include/platform.inc 2001/02/27 11:59:35
@@ -174,10 +174,12 @@
add #4,r3
dt r5
bf 1b
# Write interrupt vector
mov.l $cyg_hal_default_interrupt_vsr,r4
+ mov.l $hal_vsr_table,r3
+ add #CYGNUM_HAL_VECTOR_INTERRUPT*4,r3
mov.l r4,@r3
bra 2f
nop
.align 2