* Strange code in head.S
@ 2004-03-05 13:23 Sylvain Munaut
2004-03-06 0:02 ` Benjamin Herrenschmidt
0 siblings, 1 reply; 2+ messages in thread
From: Sylvain Munaut @ 2004-03-05 13:23 UTC (permalink / raw)
To: linuxppc-dev
Hello,
While looking at head.S, I noticed that in the FTR Section
CPU_FTR_HAS_HIGH_BATS, the register used during all the mtspr
SPRN_DBATxx,r20 is r20.
But shouldn't it be r10 ?
In the 2.4 version it was r20 but for all the preceding code of
clear_bat, it has been replaced with r10 but not in the FTR ...
Maybe I'm wrong, I'm not working on an arch that uses it. It's just
seems strange to me ...
Sylvain Munaut
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Strange code in head.S
2004-03-05 13:23 Strange code in head.S Sylvain Munaut
@ 2004-03-06 0:02 ` Benjamin Herrenschmidt
0 siblings, 0 replies; 2+ messages in thread
From: Benjamin Herrenschmidt @ 2004-03-06 0:02 UTC (permalink / raw)
To: Sylvain Munaut; +Cc: linuxppc-dev list
On Sat, 2004-03-06 at 00:23, Sylvain Munaut wrote:
> Hello,
>
> While looking at head.S, I noticed that in the FTR Section
> CPU_FTR_HAS_HIGH_BATS, the register used during all the mtspr
> SPRN_DBATxx,r20 is r20.
> But shouldn't it be r10 ?
> In the 2.4 version it was r20 but for all the preceding code of
> clear_bat, it has been replaced with r10 but not in the FTR ...
>
> Maybe I'm wrong, I'm not working on an arch that uses it. It's just
> seems strange to me ...
Good catch !
Ben.
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-03-06 0:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-05 13:23 Strange code in head.S Sylvain Munaut
2004-03-06 0:02 ` Benjamin Herrenschmidt
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).