Commit 1ade354f authored by Tom Rini's avatar Tom Rini

PPC32: Fix the udelay implementation in the bootwrapper.

It's lis rX,var@ha \n lwz rX,var@l(rX), not lis rX,var@h \n ...
From Hollis Blanchard <hollisb@us.ibm.com>.
parent d88db680
...@@ -196,7 +196,7 @@ udelay: ...@@ -196,7 +196,7 @@ udelay:
/* Change r4 to be the number of ticks using: /* Change r4 to be the number of ticks using:
* (nanoseconds + (timebase_period_ns - 1 )) / timebase_period_ns * (nanoseconds + (timebase_period_ns - 1 )) / timebase_period_ns
* timebase_period_ns defaults to 60 (16.6MHz) */ * timebase_period_ns defaults to 60 (16.6MHz) */
lis r5,timebase_period_ns@h lis r5,timebase_period_ns@ha
lwz r5,timebase_period_ns@l(r5) lwz r5,timebase_period_ns@l(r5)
addi r4,r4,r5 addi r4,r4,r5
addi r4,r4,-1 addi r4,r4,-1
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment