[PATCH 2/3] arm: return both physical and virtual addresses from addruart
Uwe Kleine-König
u.kleine-koenig at pengutronix.de
Mon Aug 23 06:05:19 EDT 2010
Hello,
> + .macro addruart_current, rx, tmp1, tmp2
> + addruart \tmp1, \tmp2
> + mrc p15, 0, \rx, c1, c0
> + tst \rx, #1
> + moveq \rx, \tmp1
> + movne \rx, \tmp2
> + .endm
Don't you need to depend on MMU somehow to do this in generic code?
Best regards
Uwe
--
Pengutronix e.K. | Uwe Kleine-König |
Industrial Linux Solutions | http://www.pengutronix.de/ |
More information about the linux-arm-kernel
mailing list