[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: can't boot 2.6.17-rc1



Benjamin Herrenschmidt writes:

> > _GLOBAL(power_save_6xx_restore)
> > 	mfspr	r11,SPRN_HID0
> > 	rlwinm	r11,r11,0,10,8		/* Clear NAP */
> > 	mtspr	SPRN_HID0,r11
> > 	b	transfer_to_handler_cont
> > 
> > If I take out that rlwinm, it boots.  Bizaare.
> 
> Gack ? Didn't I always cleared it before ? Hrm... I think darwin also

Yes, you did always clear it before.

> clears it in various places ... coul.dn't it be some stpid register
> clobbering I'm doing with r11 at this point ? (no source at hand to
> check)

No, it's perfectly safe to use r11 here.  As I said, bizaare.

I even tried changing the rlwinm to clear some other bit that I knew
would already be 0 (bit 3), and that worked.  So it really does seem
to be just the clearing of the NAP bit.

Paul.



Reply to: