public inbox for ecos-devel@sourceware.org
 help / color / mirror / Atom feed
From: "Manfred Wölfel" <manfred.woelfel@web.de>
To: ecos-devel@sourceware.org
Subject: PPC40x port
Date: Fri, 19 May 2006 04:43:00 -0000	[thread overview]
Message-ID: <446D4CF5.607@web.de> (raw)

Hi,

I have a board with a PPC405 where the RAM does not start at 0 while 
variant.inc assumes it starts at 0. For this reason I have written the 
attached patch.

Manfred

------------------------------------------------------------------------

--- hal/powerpc/ppc40x/current/include/variant.inc     2006-05-19 
06:33:04.000000000 +0200
+++ /tmp/6275-1-1-merge.txt     2006-05-19 06:32:08.000000000 +0200
@@ -150,7 +150,7 @@
         # or we are starting in RAM and NOT using a ROM monitor,
         # copy exception handler code to 0.
         lwi     r3,rom_vectors          # r3 = rom start
-        lwi     r4,0                    # r4 = ram start
+        lwi     r4,CYGHWR_HAL_POWERPC_VECTOR_BASE # r4 = ram start
         lwi     r5,rom_vectors_end      # r5 = rom end
         cmplw   r3,r5                   # skip if no vectors
         beq     2f
@@ -166,8 +166,8 @@
 2:
 #endif

-        # Ensure that the vectors will come from 0x0000
-        lwi     r4,0
+        # Ensure that the vectors will come from 
CYGHWR_HAL_POWERPC_VECTOR_BASE
+        lwi     r4, CYGHWR_HAL_POWERPC_VECTOR_BASE
         mtspr   SPR_EVPR,r4

         # Next initialize the VSR table. This happens whether the
@@ -199,8 +199,8 @@

         .macro  hal_mon_init

-        # Ensure that the vectors will come from 0x0000
-        lwi     r4,0
+        # Ensure that the vectors will come from 
CYGHWR_HAL_POWERPC_VECTOR_BASE
+        lwi     r4,CYGHWR_HAL_POWERPC_VECTOR_BASE
         mtspr   SPR_EVPR,r4

         lwi     r3,cyg_hal_default_interrupt_vsr

                 reply	other threads:[~2006-05-19  4:43 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=446D4CF5.607@web.de \
    --to=manfred.woelfel@web.de \
    --cc=ecos-devel@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).