From: "Mark Chambers" <markc@mail.com>
To: <alebas@televes.com>, <linuxppc-embedded@ozlabs.org>
Subject: Re: Kernel 2.6.10-rc1 yet not running on ads8272
Date: Mon, 29 Nov 2004 08:26:26 -0500 [thread overview]
Message-ID: <001d01c4d617$0f72f340$0301a8c0@chuck2> (raw)
In-Reply-To: 1101732712.41ab1b682760f@webmail.televes.com:443
> Hi all,
>
> After commenting out the BCSR lines on m82xx_board_init as Dan
> suggested, some problem still prevents kernel 2.6.10-rc1 from
> running in ads8272 board.
>
> After running MMU_init, next step in head.S is this
>
> /*
> * Go back to running unmapped so we can load up new values
> * for SDR1 (hash table pointer) and the segment registers
> * and change to using our exception vectors.
> */
> lis r4,2f@h
> ori r4,r4,2f@l
> tophys(r4,r4)
> li r3,MSR_KERNEL & ~(MSR_IR|MSR_DR)
> FIX_SRR1(r3,r5)
> mtspr SRR0,r4
> mtspr SRR1,r3
> SYNC
> RFI
> /* Load up the kernel context */
> 2: bl load_up_mmu
>
> which is not clear for me. Here, the execution flow breaks
> in RFI and never arrives to "bl load_up_mmu". The value of
> SRR0 and SRR1 before RFI is:
>
RFI = Return From Interrupt. In normal usage the current
address is copied into SRR0 when an exception occurs so
the processor will return to that point with an RFI. So this
code is 'faking out' the RFI instruction to return to 2:
Are you maybe trying to trace through this code? If so,
and depending on your debugger, you may not be able to.
If your debugger uses trace or some other exception to do
single step, once you get past mtspr SRR0,r4 the single
step exception will overwrite the correct SRR0. You
can see if this is the case by only tracing to mtspr SRR0,r4
and then putting a breakpoint at 2:
Good luck,
Mark Chambers
next prev parent reply other threads:[~2004-11-29 13:24 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-23 19:06 Kernel 2.6 hangs at m82xx_board_init alebas
2004-11-23 20:13 ` Dan Malek
2004-11-29 12:51 ` Kernel 2.6.10-rc1 yet not running on ads8272 alebas
2004-11-29 13:26 ` Mark Chambers [this message]
2004-11-29 13:58 ` alebas
[not found] ` <1101736520.41ab2a48a710a@webmail.televes.com:443>
[not found] ` <006b01c4d61e$707f2440$0301a8c0@chuck2>
2004-11-30 13:08 ` alebas
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='001d01c4d617$0f72f340$0301a8c0@chuck2' \
--to=markc@mail.com \
--cc=alebas@televes.com \
--cc=linuxppc-embedded@ozlabs.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 NNTP newsgroup(s).