public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Albert ARIBAUD <albert.u.boot@aribaud.net>
To: u-boot@lists.denx.de
Subject: [U-Boot] [RFC PATCH 5/7] reboard: arm: Add processor function library
Date: Wed, 07 Dec 2011 08:44:42 +0100	[thread overview]
Message-ID: <4EDF196A.7080800@aribaud.net> (raw)
In-Reply-To: <1321919880-10070-6-git-send-email-sjg@chromium.org>

Hi Simon,

Le 22/11/2011 00:57, Simon Glass a ?crit :
> Add a library to hold ARM assembler code which is generic across all
> ARM CPUs.
>
> Signed-off-by: Simon Glass<sjg@chromium.org>
> ---
>   arch/arm/lib/Makefile |    1 +
>   arch/arm/lib/proc.S   |   35 +++++++++++++++++++++++++++++++++++
>   2 files changed, 36 insertions(+), 0 deletions(-)
>   create mode 100644 arch/arm/lib/proc.S
>
> diff --git a/arch/arm/lib/Makefile b/arch/arm/lib/Makefile
> index ca2802a..27749dc 100644
> --- a/arch/arm/lib/Makefile
> +++ b/arch/arm/lib/Makefile
> @@ -50,6 +50,7 @@ endif
>
>   ifndef CONFIG_SYS_LEGACY_BOARD
>   COBJS-y += arch_reloc.o
> +SOBJS-y += proc.o
>   endif
>
>   SRCS	:= $(GLSOBJS:.o=.S) $(GLCOBJS:.o=.c) \
> diff --git a/arch/arm/lib/proc.S b/arch/arm/lib/proc.S
> new file mode 100644
> index 0000000..99a2944
> --- /dev/null
> +++ b/arch/arm/lib/proc.S
> @@ -0,0 +1,35 @@
> +/*
> + * Copyright (c) 2011 The Chromium OS Authors.
> + * See file CREDITS for list of people who contributed to this
> + * project.
> + *
> + * This program is free software; you can redistribute it and/or
> + * modify it under the terms of the GNU General Public License as
> + * published by the Free Software Foundation; either version 2 of
> + * the License, or (at your option) any later version.
> + *
> + * This program is distributed in the hope that it will be useful,
> + * but WITHOUT ANY WARRANTY; without even the implied warranty of
> + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
> + * GNU General Public License for more details.
> + *
> + * You should have received a copy of the GNU General Public License
> + * along with this program; if not, write to the Free Software
> + * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
> + * MA 02111-1307 USA
> + */
> +
> +
> +/**
> + * Jump to board_init_r with a new stack pointer
> + *
> + * @param gd	Pointer to global data
> + * @param dest_addr	Destination address from global data
> + * @param func	Address of board_init_r function (relocated)
> + * @param sp	New stack pointer
> + */
> +.globl proc_call_board_init_r
> +proc_call_board_init_r:
> +	mov	sp, r3
> +	/* jump to it ... */
> +	mov	pc, r2

What do we gain from this patch exactly?

Amicalement,
-- 
Albert.

  parent reply	other threads:[~2011-12-07  7:44 UTC|newest]

Thread overview: 47+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-21 23:57 [U-Boot] [RFC PATCH 0/7] reboard: Introduce generic relocation feature Simon Glass
2011-11-21 23:57 ` [U-Boot] [RFC PATCH 1/7] reboard: define CONFIG_SYS_LEGACY_BOARD everywhere Simon Glass
2011-11-29  3:11   ` Mike Frysinger
2011-11-29 20:08     ` Simon Glass
2011-11-29 21:40       ` Mike Frysinger
2011-11-29 22:09         ` Simon Glass
2011-11-29 23:19           ` Mike Frysinger
2011-11-29 23:40             ` Simon Glass
2011-12-07  8:15               ` Albert ARIBAUD
2011-12-07 16:28                 ` Simon Glass
2011-12-05  6:42           ` Aneesh V
2011-11-21 23:57 ` [U-Boot] [RFC PATCH 2/7] reboard: Add generic link symbols Simon Glass
2011-11-29  2:59   ` Mike Frysinger
2011-12-07 22:37     ` Simon Glass
2011-11-21 23:57 ` [U-Boot] [RFC PATCH 3/7] reboard: Add generic relocation feature Simon Glass
2011-11-29  3:07   ` Mike Frysinger
2011-11-29 22:15     ` Simon Glass
2011-11-29 23:00       ` Graeme Russ
2011-11-29 23:20       ` Mike Frysinger
2011-11-29 23:41         ` Simon Glass
2011-11-29 23:49           ` Graeme Russ
2011-11-30  2:58             ` Mike Frysinger
2011-12-07  7:38               ` Albert ARIBAUD
2011-12-08  0:35                 ` Mike Frysinger
2011-12-09  3:36                   ` Simon Glass
2011-12-07 22:45     ` Simon Glass
2011-12-07 22:54       ` Graeme Russ
2011-12-07 22:55         ` Simon Glass
2011-11-21 23:57 ` [U-Boot] [RFC PATCH 4/7] reboard: arm: Add relocation function Simon Glass
2011-11-21 23:57 ` [U-Boot] [RFC PATCH 5/7] reboard: arm: Add processor function library Simon Glass
2011-11-29  3:12   ` Mike Frysinger
2011-12-07  7:44   ` Albert ARIBAUD [this message]
2011-12-07 16:24     ` Simon Glass
2011-11-21 23:57 ` [U-Boot] [RFC PATCH 6/7] reboard: arm: Move over to generic relocation Simon Glass
2011-11-29  3:14   ` Mike Frysinger
2011-12-09  3:41     ` Simon Glass
2011-11-21 23:58 ` [U-Boot] [RFC PATCH 7/7] reboard: arm: Remove unused code in start.S Simon Glass
2011-11-29  3:15   ` Mike Frysinger
2011-12-09  3:42     ` Simon Glass
2011-11-28 23:45 ` [U-Boot] [RFC PATCH 0/7] reboard: Introduce generic relocation feature Tom Rini
2011-12-07  1:56   ` Simon Glass
2011-12-07  2:56     ` Graeme Russ
2011-12-07  3:25       ` Simon Glass
2011-12-07  3:36         ` Graeme Russ
2011-12-07 23:29   ` Simon Glass
2011-12-07  8:10 ` Albert ARIBAUD
2011-12-09  3:34   ` Simon Glass

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=4EDF196A.7080800@aribaud.net \
    --to=albert.u.boot@aribaud.net \
    --cc=u-boot@lists.denx.de \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox