[U-Boot] p4080ds starts OS with MSR[EE]=1 and DEC armed?

Jimi Xenidis jimix at pobox.com
Tue Mar 15 22:22:18 CET 2011


On Mar 15, 2011, at 4:21 PM, Timur Tabi wrote:
> 
> Jimi Xenidis wrote:
>> That is true for "server" and "classic" because they do not necessarily stop at 0.
>> for embedded you can just:
>> 	/* u-boot leaves decrementer enabled */
>> 	mtspr(SPRN_DECAR, 0); /* paranoia */
>> 	mtspr(SPRN_DEC, 0);
>> 	mtspr(SPRN_TCR, 0);
>> 	mtspr(SPRN_TSR, 0);
> 
> I think you mean
> 
> 	mtspr(SPRN_TSR, 0xFFFFFFFF);
> 

Ahh yes.. thank you :)
-JX

> since it's write-1-to-clear.  Other than that, this is exactly what I was
> talking about.  I just think it makes sense for the boot loader to try to
> disable as many interrupt sources as possible, and force the OS to enable the
> ones it wants.
> 
> On the other hand, Scott's points are completely valid.





More information about the U-Boot mailing list