linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* defining ZRELADDR as PHYS_OFFSET + TEXT_OFFSET
@ 2010-01-27 10:12 Uwe Kleine-König
  2010-01-28  0:15 ` Russell King - ARM Linux
  0 siblings, 1 reply; 7+ messages in thread
From: Uwe Kleine-König @ 2010-01-27 10:12 UTC (permalink / raw)
  To: linux-arm-kernel

Hello,

currently all platforms need to define zreladdr-y in
arch/arm/mach-$mach/Makefile.boot and PHYS_OFFSET (in
arch/arm/mach-$mach/include/mach/memory.h).

Constraints for these are:

 TEXTADDR = PAGE_OFFSET + TEXT_OFFSET
 __virt_to_phys(virt) = virt - PAGE_OFFSET + PHYS_OFFSET (at least for
	"small" virtual addresses)
 ZRELADDR = __virt_to_phys(TEXTADDR)

(The equallity for __virt_to_phys only holds "normaly" according to
http://lists.arm.linux.org.uk/lurker/message/20010723.185051.94ce743c.en.html.
In practice it holds for addresses of the first bank of RAM which is
enough for the purposes of this mail.)

So we can deduce ZRELADDR = PHYS_OFFSET + TEXT_OFFSET.

Is there something I missed or is it possible to get rid of zreladdr-y
in .../Makefile.boot and define it according to the equation above?

Best regards
Uwe

-- 
Pengutronix e.K.                              | Uwe Kleine-K?nig            |
Industrial Linux Solutions                    | http://www.pengutronix.de/  |

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-02-05 14:14 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-27 10:12 defining ZRELADDR as PHYS_OFFSET + TEXT_OFFSET Uwe Kleine-König
2010-01-28  0:15 ` Russell King - ARM Linux
2010-02-01  1:24   ` George G. Davis
2010-02-01  8:49     ` Uwe Kleine-König
2010-02-05  8:26       ` George G. Davis
2010-02-05  9:10         ` Uwe Kleine-König
2010-02-05 14:14           ` George G. Davis

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).