linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* The "icache enable" cause the linux crash
@ 2006-12-05  8:18 陈希
  0 siblings, 0 replies; 2+ messages in thread
From: 陈希 @ 2006-12-05  8:18 UTC (permalink / raw)
  To: linuxppc-dev

	
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
///////////////////////////////

^ permalink raw reply	[flat|nested] 2+ messages in thread
* The "icache enable" cause the linux crash
@ 2006-12-05  8:36 陈希
  0 siblings, 0 replies; 2+ messages in thread
From: 陈希 @ 2006-12-05  8:36 UTC (permalink / raw)
  To: linuxppc-dev

	
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
///////////////////////////////

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-12-05  8:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-05  8:18 The "icache enable" cause the linux crash 陈希
  -- strict thread matches above, loose matches on Subject: below --
2006-12-05  8:36 陈希

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).