linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 01/52] ARM: introduce atag_offset to replace boot_params
@ 2011-07-06  2:46 Nicolas Pitre
  2011-07-06  2:46 ` [PATCH 02/52] ARM: mach-clps711x: convert boot_params to atag_offset Nicolas Pitre
                   ` (55 more replies)
  0 siblings, 56 replies; 81+ messages in thread
From: Nicolas Pitre @ 2011-07-06  2:46 UTC (permalink / raw)
  To: linux-arm-kernel

The boot_params member of the mdesc structure is used to provide a
default physical address for the ATAG list.  Since this value is fixed
at compile time and often based on ARCH_PHYS_OFFSET, it gets in the way
of runtime PHYS_OFFSET usage.

Let's introduce atag_offset which should contains only the relative
offset from start of memory instead of an absolute value, in preparation
to move all instance of boot_params over to it.

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
---
 arch/arm/include/asm/mach/arch.h |    1 +
 arch/arm/kernel/setup.c          |    2 ++
 2 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/arch/arm/include/asm/mach/arch.h b/arch/arm/include/asm/mach/arch.h
index 7b79a00..1bdf6e1 100644
--- a/arch/arm/include/asm/mach/arch.h
+++ b/arch/arm/include/asm/mach/arch.h
@@ -18,6 +18,7 @@ struct machine_desc {
 	unsigned int		nr;		/* architecture number	*/
 	const char		*name;		/* architecture name	*/
 	unsigned long		boot_params;	/* tagged list		*/
+	unsigned long		atag_offset;	/* tagged list (relative) */
 	const char		**dt_compat;	/* array of device tree
 						 * 'compatible' strings	*/
 
diff --git a/arch/arm/kernel/setup.c b/arch/arm/kernel/setup.c
index e0db84d..4cc3e2b 100644
--- a/arch/arm/kernel/setup.c
+++ b/arch/arm/kernel/setup.c
@@ -816,6 +816,8 @@ static struct machine_desc * __init setup_machine_tags(unsigned int nr)
 
 	if (__atags_pointer)
 		tags = phys_to_virt(__atags_pointer);
+	else if(mdesc->atag_offset)
+		tags = PAGE_OFFSET + mdesc->atag_offset;
 	else if (mdesc->boot_params) {
 #ifdef CONFIG_MMU
 		/*
-- 
1.7.4

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

end of thread, other threads:[~2011-07-16  2:44 UTC | newest]

Thread overview: 81+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-06  2:46 [PATCH 01/52] ARM: introduce atag_offset to replace boot_params Nicolas Pitre
2011-07-06  2:46 ` [PATCH 02/52] ARM: mach-clps711x: convert boot_params to atag_offset Nicolas Pitre
2011-07-06  2:46 ` [PATCH 03/52] ARM: mach-cns3xxx: " Nicolas Pitre
2011-07-06  2:46 ` [PATCH 04/52] ARM: mach-davinci: " Nicolas Pitre
2011-07-06  2:46 ` [PATCH 05/52] ARM: mach-dove: convert boot-params " Nicolas Pitre
2011-07-06  2:46 ` [PATCH 06/52] ARM: mach-ebsa110: convert boot_params " Nicolas Pitre
2011-07-06  2:46 ` [PATCH 07/52] ARM: mach-ep93xx: " Nicolas Pitre
2011-07-07 16:32   ` H Hartley Sweeten
2011-07-07 16:59     ` Nicolas Pitre
2011-07-07 17:20       ` H Hartley Sweeten
2011-07-07 18:20         ` Nicolas Pitre
2011-07-06  2:46 ` [PATCH 08/52] ARM: mach-exynos4: " Nicolas Pitre
2011-07-06  2:46 ` [PATCH 09/52] ARM: mach-footbridge: " Nicolas Pitre
2011-07-06  2:46 ` [PATCH 10/52] ARM: mach-gemini: " Nicolas Pitre
2011-07-06  2:46 ` [PATCH 11/52] ARM: mach-h720x: " Nicolas Pitre
2011-07-06  2:46 ` [PATCH 12/52] ARM: mach-imx: " Nicolas Pitre
2011-07-06  2:46 ` [PATCH 13/52] ARM: mach-integrator: " Nicolas Pitre
2011-07-06  2:46 ` [PATCH 14/52] ARM: mach-iop13xx: " Nicolas Pitre
2011-07-06  2:47 ` [PATCH 15/52] ARM: mach-iop32x: " Nicolas Pitre
2011-07-06  2:47 ` [PATCH 16/52] ARM: mach-iop33x: " Nicolas Pitre
2011-07-06  2:47 ` [PATCH 17/52] ARM: mach-ixp2000: " Nicolas Pitre
2011-07-06  2:47 ` [PATCH 18/52] ARM: mach-ixp23xx: " Nicolas Pitre
2011-07-06  2:47 ` [PATCH 19/52] ARM: mach-ixp4xx: " Nicolas Pitre
2011-07-06  2:47 ` [PATCH 20/52] ARM: mach-kirkwood: " Nicolas Pitre
2011-07-06  2:47 ` [PATCH 21/52] ARM: mach-ks8695: " Nicolas Pitre
2011-07-06  2:47 ` [PATCH 22/52] ARM: mach-loki: " Nicolas Pitre
2011-07-06  2:47 ` [PATCH 23/52] ARM: mach-lpc32xx: " Nicolas Pitre
2011-07-06  2:47 ` [PATCH 24/52] ARM: mach-msm: " Nicolas Pitre
2011-07-06  2:47 ` [PATCH 25/52] ARM: mach-mv78xx0: " Nicolas Pitre
2011-07-06  2:47 ` [PATCH 26/52] ARM: mach-mx5: " Nicolas Pitre
2011-07-06  2:47 ` [PATCH 27/52] ARM: mach-netx: " Nicolas Pitre
2011-07-06  2:47 ` [PATCH 28/52] ARM: mach-nomadik: " Nicolas Pitre
2011-07-06  2:47 ` [PATCH 29/52] ARM: mach-nuc93x: " Nicolas Pitre
2011-07-06  2:47 ` [PATCH 30/52] ARM: mach-omap1: " Nicolas Pitre
2011-07-07 14:28   ` Tony Lindgren
2011-07-06  2:47 ` [PATCH 31/52] ARM: mach-omap2: " Nicolas Pitre
2011-07-07 14:28   ` Tony Lindgren
2011-07-07 15:35     ` Nicolas Pitre
2011-07-06  2:47 ` [PATCH 32/52] ARM: mach-orion5x: " Nicolas Pitre
2011-07-06  2:47 ` [PATCH 33/52] ARM: mach-pnx4008: " Nicolas Pitre
2011-07-06  2:47 ` [PATCH 34/52] ARM: mach-pxa: " Nicolas Pitre
2011-07-06  2:47 ` [PATCH 35/52] ARM: mach-realview: " Nicolas Pitre
2011-07-06  2:47 ` [PATCH 36/52] ARM: mach-rpc: " Nicolas Pitre
2011-07-06  2:47 ` [PATCH 37/52] ARM: mach-s3c24*: " Nicolas Pitre
2011-07-06  2:47 ` [PATCH 38/52] ARM: mach-s5p64x0: " Nicolas Pitre
2011-07-06  2:47 ` [PATCH 39/52] ARM: mach-s3c64xx: " Nicolas Pitre
2011-07-06  2:47 ` [PATCH 40/52] ARM: mach-s5pc100, mach-s5pv210: " Nicolas Pitre
2011-07-06  2:47 ` [PATCH 41/52] ARM: mach-sa1100: " Nicolas Pitre
2011-07-06  2:47 ` [PATCH 42/52] ARM: mach-shark: " Nicolas Pitre
2011-07-06  2:47 ` [PATCH 43/52] ARM: mach-spear*: " Nicolas Pitre
2011-07-06  2:47 ` [PATCH 44/52] ARM: mach-tcc8k: " Nicolas Pitre
2011-07-06  2:47 ` [PATCH 45/52] ARM: mach-tegra: " Nicolas Pitre
2011-07-06  2:47 ` [PATCH 46/52] ARM: mach-u300: " Nicolas Pitre
2011-07-08 13:12   ` Linus Walleij
2011-07-08 21:20     ` Russell King - ARM Linux
2011-07-06  2:47 ` [PATCH 47/52] ARM: mach-ux500: convert boot-params " Nicolas Pitre
2011-07-08 13:18   ` Linus Walleij
2011-07-06  2:47 ` [PATCH 48/52] ARM: mach-versatile: " Nicolas Pitre
2011-07-06  2:47 ` [PATCH 49/52] ARM: vexpress: convert boot_params " Nicolas Pitre
2011-07-06  2:47 ` [PATCH 50/52] ARM: mach-vt8500: " Nicolas Pitre
2011-07-06  2:47 ` [PATCH 51/52] ARM: mach-w90x900: remove useless boot_params entries Nicolas Pitre
2011-07-06  2:47 ` [PATCH 52/52] ARM: remove boot_params from struct machine_desc Nicolas Pitre
2011-07-06  4:28 ` [PATCH 01/52] ARM: introduce atag_offset to replace boot_params Stephen Boyd
2011-07-06 12:54   ` Nicolas Pitre
2011-07-06 17:59     ` Stephen Boyd
2011-07-07  0:43 ` H Hartley Sweeten
2011-07-07  4:04   ` Nicolas Pitre
2011-07-07 18:28     ` H Hartley Sweeten
2011-07-07 11:37 ` Sergei Shtylyov
2011-07-07 15:37   ` Nicolas Pitre
2011-07-07 15:45 ` Arnd Bergmann
2011-07-08 20:36 ` Russell King - ARM Linux
2011-07-08 21:20   ` Nicolas Pitre
2011-07-11 14:59     ` Nicolas Pitre
2011-07-11 17:17       ` H Hartley Sweeten
2011-07-12 20:48         ` Petr Štetiar
2011-07-12 21:39           ` H Hartley Sweeten
2011-07-15  6:48             ` Petr Štetiar
2011-07-15 22:40               ` H Hartley Sweeten
2011-07-16  2:44                 ` Nicolas Pitre
2011-07-13  3:22           ` Nicolas Pitre

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