From: 陈希 <xchen@sunrisetelecom.com.cn>
To: <linuxppc-dev@ozlabs.org>
Subject: The "icache enable" cause the linux crash
Date: Tue, 5 Dec 2006 16:18:09 +0800 [thread overview]
Message-ID: <20061205082450.AF39867B99@ozlabs.org> (raw)
Hi,
I use Uboot to boot the linux. The console display "transferring
control to linux..." and the LED1 is lighting. The linux crash at this.
When I port the Uboot to my board(MPC885), I meet the similar problem. I
must disable icache in board_init_f() then the uboot can run in ram.
I delete line 2 and line 5 , it is worse. Both of LEDs are not light. Could
you tell me why.
initial_mmu:
.
.
.
/* Since the cache is enabled according to the information we
* just loaded into the TLB, invalidate and enable the caches here.
* We should probably check/set other modes....later.
*/
////////////////////////////////
Light the LED1
///////////////////////////////
1 lis r8, IDC_INVALL@h
2 mtspr IC_CST, r8
3 mtspr DC_CST, r8
4 lis r8, IDC_ENABLE@h
5 mtspr IC_CST, r8
#ifdef CONFIG_8xx_COPYBACK
mtspr DC_CST, r8
#else
/* For a debug option, I left this here to easily enable
* the write through cache mode
*/
lis r8, DC_SFWT@h
mtspr DC_CST, r8
lis r8, IDC_ENABLE@h
mtspr DC_CST, r8
#endif
////////////////////////////////
Light the LED2
///////////////////////////////
next reply other threads:[~2006-12-05 8:24 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-05 8:18 陈希 [this message]
-- strict thread matches above, loose matches on Subject: below --
2006-12-05 8:36 The "icache enable" cause the linux crash 陈希
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=20061205082450.AF39867B99@ozlabs.org \
--to=xchen@sunrisetelecom.com.cn \
--cc=linuxppc-dev@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).