public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] forwarded message from Peter Reintjes
@ 2001-03-07 23:15 Jesper Skov
  0 siblings, 0 replies; only message in thread
From: Jesper Skov @ 2001-03-07 23:15 UTC (permalink / raw)
  To: ecos-discuss

To : <jskov at cambridge dot redhat dot com>, <n_ecos at targus dot net>
Subject : Re: undefined reference to 'dsr_disable_counter'
From : "Peter Reintjes" <peter at targus dot net>
Date : Wed, 7 Mar 2001 11:31:30 -0500
Reply-To : <peter at targus dot net>

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-03-07 23:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-03-07 23:15 [ECOS] forwarded message from Peter Reintjes Jesper Skov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).