This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

forwarded message from Peter Reintjes




Thanks for the prompt reply (to Nick n_ecos@targus.net, not me)
However, your fix did not change anything -- error exactly
as before:

+volatile cyg_int32 dsr_disable_counter  // DSR disable counter
+               CYGBLD_ATTRIB_ASM_ALIAS( cyg_scheduler_sched_lock );

PRODUCES:
	undefined reference to 'dsr_disable_counter'

Can you tell me what, if anything, would be wrong with doing
it the following way?

volatile cyg_int32 cyg_scheduler_sched_lock;
#define dsr_disable_counter cyg_scheduler_sched_lock  // DSR disable counter

First of all, it isn't clear to me that this is where the storage for
cyg_scheduler_sched_lock is supposed to be defined.  Also,
the dsr_disable_counter alias is limited to this file. Does
dsr_disable_counter need to be a global alias?  I can't find any
other references to it.

Do you have any idea why I would be having this problem with
gcc version 2.95.1 19990816 (release) under Redhat 7.0? I assume
this links correctly in your environment(which is what?).
I can't use the next version of GCC because we are cross-compiling
for the Hitachi SH (which apparently broke in 2.95.2),
could this be a compiler bug?

           - Peter

----- Original Message -----
From: "Jesper Skov" <jskov@cambridge.redhat.com>
To: "Nick - eCos Developer" <n_ecos@mail.targus.net>
Cc: "Ecos - Discuss" <ecos-discuss@sourceware.cygnus.com>
Sent: Wednesday, March 07, 2001 2:17 AM
Subject: Re: [ECOS] SH build - Odd Link Error


> >>>>> ""Nick" == "Nick  <- eCos Developer" <n_ecos@targus.net>> writes:
>
> "Nick> volatile cyg_int32 dsr_disable_counter
> "Nick> asm("cyg_scheduler_sched_lock"); // DSR disable counter
>
> Try the below patch.
>
> Jesper
<snip>


Peter Reintjes
Targus Communications Corporation
3100 NW Boca Raton Blvd.  Suite 104
Boca Raton, FL 33431
TEL (561)393-8233  x116
FAX (561)393-8244




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]