[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] Change of TEXT_OFFSET for multi_v7_defconfig
From: |
Russell King - ARM Linux |
Subject: |
Re: [Qemu-devel] Change of TEXT_OFFSET for multi_v7_defconfig |
Date: |
Tue, 22 Apr 2014 18:11:42 +0100 |
User-agent: |
Mutt/1.5.19 (2009-01-05) |
On Tue, Apr 22, 2014 at 04:50:12PM +0200, Michal Simek wrote:
> On 04/17/2014 10:35 PM, Jason Gunthorpe wrote:
> > +/* If we have a known, fixed physical load address then set LOAD_OFFSET
> > + and generate an ELF that has the physical load address in the program
> > + headers. */
> > +#ifndef CONFIG_ARM_PATCH_PHYS_VIRT
> > +#define LOAD_OFFSET (PAGE_OFFSET - PLAT_PHYS_OFFSET)
> > +#endif
> > +
...
> > - .head.text : {
> > + .head.text : AT(ADDR(.head.text) - LOAD_OFFSET) {
> > _text = .;
> > + phys_start = . - LOAD_OFFSET;
> > HEAD_TEXT
> > }
>
> I am not quite about these changes above but Russell can comment it.
I don't think /anyone/ is seriously proposing that we should merge this
patch... because that won't happen. It should be clear enough from the
discussion why that is, but in case it isn't, take a look above.
What is that ifdef saying. It's saying that if you enable
ARM_PATCH_PHYS_VIRT, which is an absolute requirement for multi-
platform kernels, then you get the proper LMA addresses. If you don't,
then you don't get proper LMA addresses.
Put another way, if your platform is part of the multi-platform kernel
then you are *excluded* from being able to use this... unless you hack
the Kconfig, and then also provide a constant value for PHYS_OFFSET,
thereby _tying_ the kernel you built to a _single_ platform.
You can't do this _and_ have a multi-platform kernel.
--
FTTC broadband for 0.8mile line: now at 9.7Mbps down 460kbps up... slowly
improving, and getting towards what was expected from it.
- Re: [Qemu-devel] Change of TEXT_OFFSET for multi_v7_defconfig, (continued)
- Re: [Qemu-devel] Change of TEXT_OFFSET for multi_v7_defconfig, Russell King - ARM Linux, 2014/04/16
- Re: [Qemu-devel] Change of TEXT_OFFSET for multi_v7_defconfig, Russell King - ARM Linux, 2014/04/16
- Re: [Qemu-devel] Change of TEXT_OFFSET for multi_v7_defconfig, Nicolas Pitre, 2014/04/16
- Re: [Qemu-devel] Change of TEXT_OFFSET for multi_v7_defconfig, Christopher Covington, 2014/04/17
- Re: [Qemu-devel] Change of TEXT_OFFSET for multi_v7_defconfig, Nicolas Pitre, 2014/04/17
- Re: [Qemu-devel] Change of TEXT_OFFSET for multi_v7_defconfig, Christopher Covington, 2014/04/17
- Re: [Qemu-devel] Change of TEXT_OFFSET for multi_v7_defconfig, Peter Maydell, 2014/04/17
- Re: [Qemu-devel] Change of TEXT_OFFSET for multi_v7_defconfig, Jason Gunthorpe, 2014/04/17
- Re: [Qemu-devel] Change of TEXT_OFFSET for multi_v7_defconfig, Michal Simek, 2014/04/22
- Re: [Qemu-devel] Change of TEXT_OFFSET for multi_v7_defconfig, Jason Gunthorpe, 2014/04/22
- Re: [Qemu-devel] Change of TEXT_OFFSET for multi_v7_defconfig,
Russell King - ARM Linux <=
- Re: [Qemu-devel] Change of TEXT_OFFSET for multi_v7_defconfig, Jason Gunthorpe, 2014/04/22
- Re: [Qemu-devel] Change of TEXT_OFFSET for multi_v7_defconfig, Russell King - ARM Linux, 2014/04/22
- Re: [Qemu-devel] Change of TEXT_OFFSET for multi_v7_defconfig, Arnd Bergmann, 2014/04/22
- Re: [Qemu-devel] Change of TEXT_OFFSET for multi_v7_defconfig, Russell King - ARM Linux, 2014/04/22
- Re: [Qemu-devel] Change of TEXT_OFFSET for multi_v7_defconfig, Arnd Bergmann, 2014/04/22
- Re: [Qemu-devel] Change of TEXT_OFFSET for multi_v7_defconfig, Daniel Thompson, 2014/04/22
- Re: [Qemu-devel] Change of TEXT_OFFSET for multi_v7_defconfig, Jason Gunthorpe, 2014/04/22
- Re: [Qemu-devel] Change of TEXT_OFFSET for multi_v7_defconfig, Nicolas Pitre, 2014/04/22
- Re: [Qemu-devel] Change of TEXT_OFFSET for multi_v7_defconfig, Russell King - ARM Linux, 2014/04/22
Re: [Qemu-devel] Change of TEXT_OFFSET for multi_v7_defconfig, Rob Herring, 2014/04/17