This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Hitachi SH3 port questions
>>>>> "Jonathan" == Jonathan Larmour <jlarmour@cygnus.co.uk> writes:
Jonathan> Brian.Danilko@instech.com.au wrote:
>> 1) In packages/hal/sh/arch/current/src/vectors.S there is a
>> reference to the symbol cyg_scheduler_sched_lock that always comes
>> up undefined in my links. I have to change it to
>> _cyg_scheduler_sched_lock (Note the leading underscore) to get it
>> to link. Is this normal?
Jonathan> You're using anoncvs I guess? Try updating your sources to
Jonathan> the latest version.
Nah, it was b0rken. I've fixed it now (patch below).
Thanks,
Jesper
Index: ChangeLog
===================================================================
RCS file: /local/cvsfiles/ecc/ecc/hal/sh/arch/current/ChangeLog,v
retrieving revision 1.131
diff -u -5 -r1.131 ChangeLog
--- ChangeLog 2000/11/24 16:48:48 1.131
+++ ChangeLog 2000/12/08 08:51:11
@@ -1,5 +1,10 @@
+2000-12-08 Jesper Skov <jskov@redhat.com>
+
+ * src/vectors.S (cyg_scheduler_sched_lock): Changed to use
+ SYM_PTR_REF. Brian Danilko spotted this.
+
2000-11-24 Jonathan Larmour <jlarmour@redhat.com>
* src/sh.ld: _reset should be adorned with CYG_LABEL_DEFN
* src/vectors.S: CYG_LABEL_DEFN should have been used everywhere
that CYG_LABEL_NAME was used, except for the scheduler lock which
Index: src/vectors.S
===================================================================
RCS file: /local/cvsfiles/ecc/ecc/hal/sh/arch/current/src/vectors.S,v
retrieving revision 1.64
diff -u -5 -r1.64 vectors.S
--- src/vectors.S 2000/11/24 16:48:49 1.64
+++ src/vectors.S 2000/12/08 08:50:07
@@ -629,15 +629,11 @@
#ifdef CYGFUN_HAL_COMMON_KERNEL_SUPPORT
SYM_PTR_REF(cyg_interrupt_call_pending_DSRs)
SYM_PTR_REF(interrupt_end)
- # cyg_scheduler_sched_lock is special as it is defined as an asm alias
-
- .globl cyg_scheduler_sched_lock
-$cyg_scheduler_sched_lock: .long cyg_scheduler_sched_lock
-
+ SYM_PTR_REF(cyg_scheduler_sched_lock)
#endif
#---------------------------------------------------------------------------
# Platform initialization (reset)
FUNC_START(_reset_platform)