public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: "Robert Meiche" <rmeiche@gmx.de>
To: ecos-discuss@ecos.sourceware.org
Subject: [ECOS] eCos memory layout:  other RAM Position than 0x0
Date: Tue, 15 Sep 2009 16:46:00 -0000	[thread overview]
Message-ID: <20090915164644.212560@gmx.net> (raw)

Hi.
I have the problem, that i need to position eCos at another RAM position.

I'm doing a diploma thesis which  includes a multicore environment on an Virtex-II(XUP-BOARD). In this environment, the sections are located as following:
.boot 0xfffffffc
.boot0 0xffffe000

all the other sections are located in RAM beginning at position 0x0.

Now I need the position 0x0 for the PC of the microblaze CPU. So I wanted to position eCos at 0x100.
I modified the files
mlt_powerpc_virtex4_romram.h   and
mlt_powerpc_virtex4_romram.ldi

The eCos configuration is set to romram startup-type. After building eCos, everything seems fine when I look at the linkerscript. 
Running a single threaded app works fine. But running a multithreaded app gives me the following error message:
Sorting data...ASSERT FAIL: <1>mlqueue.cxx[281]void Cyg_Scheduler_Implementation::rem_thread() Idle thread trying to sleep!
ASSERT FAIL: <1>mlqueue.cxx         [ 281] void Cyg_Scheduler_Implementation::rem_thread()                                                      I!TRACE: <1>thread.cxx          [ 224] Cyg_Thread::Cyg_Thread()                                                                             }}returdTRACE: <1>thread.cxx          [ 597] void Cyg_Thread::resume()              

The other Problem is, that the eCos configuration includes the POSIX compatibility layer. But after Changing the memory layout files, apps, which includes a main() function don't start until I rename them to cyg_user_start.

Does anyone ever changed the RAM Postion of eCos and can give me some hints?

Regards,
Robert
-- 
GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

                 reply	other threads:[~2009-09-15 16:46 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090915164644.212560@gmx.net \
    --to=rmeiche@gmx.de \
    --cc=ecos-discuss@ecos.sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).