All of lore.kernel.org
 help / color / mirror / Atom feed
From: sboyd@codeaurora.org (Stephen Boyd)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 01/52] ARM: introduce atag_offset to replace boot_params
Date: Tue, 05 Jul 2011 21:28:29 -0700	[thread overview]
Message-ID: <4E13E46D.3050205@codeaurora.org> (raw)
In-Reply-To: <1309920457-21913-1-git-send-email-nicolas.pitre@linaro.org>

On 07/05/2011 07:46 PM, Nicolas Pitre wrote:
> 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
>  		/*

Would it make sense to drop the atag_offset in most board files and
default it to 0x100 in the MACHINE_START macro itself? It's almost a
universal value and would cut down on hundreds of lines.

-- 
Sent by an employee of the Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.

  parent reply	other threads:[~2011-07-06  4:28 UTC|newest]

Thread overview: 81+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 ` Stephen Boyd [this message]
2011-07-06 12:54   ` [PATCH 01/52] ARM: introduce atag_offset to replace boot_params 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4E13E46D.3050205@codeaurora.org \
    --to=sboyd@codeaurora.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.