All of lore.kernel.org
 help / color / mirror / Atom feed
From: Scott Wood <scottwood@freescale.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v3 2/8] SPL: Port SPL framework to powerpc
Date: Fri, 28 Sep 2012 18:13:52 -0500	[thread overview]
Message-ID: <1348874032.5580.27@snotra> (raw)
In-Reply-To: <1348650074-25878-3-git-send-email-sr@denx.de> (from sr@denx.de on Wed Sep 26 04:01:08 2012)

On 09/26/2012 04:01:08 AM, Stefan Roese wrote:
> This patch enables the SPL framework to be used on powerpc platforms
> and not only ARM.
> 
> Signed-off-by: Stefan Roese <sr@denx.de>
> ---
> Changes in v2:
> - Rebased on Tom's SPL framework patches v4
> - Add option to skip copying of the mkimage header
> 
>  arch/powerpc/lib/Makefile |  1 +
>  arch/powerpc/lib/spl.c    | 42  
> ++++++++++++++++++++++++++++++++++++++++++
>  common/spl/spl.c          | 10 ++++++++++
>  3 files changed, 53 insertions(+)
>  create mode 100644 arch/powerpc/lib/spl.c
> 
> diff --git a/arch/powerpc/lib/Makefile b/arch/powerpc/lib/Makefile
> index 965f9ea..9bcbdde 100644
> --- a/arch/powerpc/lib/Makefile
> +++ b/arch/powerpc/lib/Makefile
> @@ -50,6 +50,7 @@ COBJS-y	+= cache.o
>  COBJS-y	+= extable.o
>  COBJS-y	+= interrupts.o
>  COBJS-$(CONFIG_CMD_KGDB) += kgdb.o
> +COBJS-$(CONFIG_SPL_FRAMEWORK) += spl.o
>  COBJS-y	+= time.o

Won't this build spl.o into the main U-Boot as well?

> +/*
> + * This function jumps to an image with argument. Normally an FDT or  
> ATAGS
> + * image.
> + * arg: Pointer to paramter image in RAM
> + */
> +#ifdef CONFIG_SPL_OS_BOOT
> +void __noreturn jump_to_image_linux(void *arg)
> +{
> +	debug("Entering kernel arg pointer: 0x%p\n", arg);
> +	typedef void (*image_entry_arg_t)(void *, ulong r4, ulong r5,  
> ulong r6,
> +					  ulong r7, ulong r8, ulong r9)
> +		__attribute__ ((noreturn));
> +	image_entry_arg_t image_entry =
> +		(image_entry_arg_t)spl_image.entry_point;
> +
> +	image_entry(arg, 0, 0, EPAPR_MAGIC, CONFIG_SYS_BOOTMAPSZ, 0, 0);
> +}

At what point does the image get cache-flushed?

-Scott

  reply	other threads:[~2012-09-28 23:13 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-26  9:01 [U-Boot] [PATCH v3 0/8] SPL: Port SPL framework to powerpc Stefan Roese
2012-09-26  9:01 ` [U-Boot] [PATCH v3 1/8] powerpc: Extract EPAPR_MAGIC constants into processor.h Stefan Roese
2012-09-26  9:01 ` [U-Boot] [PATCH v3 2/8] SPL: Port SPL framework to powerpc Stefan Roese
2012-09-28 23:13   ` Scott Wood [this message]
2012-09-28 23:32     ` Tom Rini
2012-10-02 10:20     ` Stefan Roese
2012-10-02 20:08       ` Scott Wood
2012-10-04  7:36         ` Stefan Roese
2012-10-04 17:14           ` Scott Wood
2012-10-05 13:15             ` Stefan Roese
2012-10-05 15:22               ` Tom Rini
2012-10-05 16:05                 ` Scott Wood
2012-10-05 17:03                 ` Stefan Roese
2012-10-05 17:33                   ` Tom Rini
2012-09-26  9:01 ` [U-Boot] [PATCH v3 3/8] env: Extract getenv_f() into separate source file Stefan Roese
2012-09-26 11:07   ` Stefan Roese
2012-09-26  9:01 ` [U-Boot] [PATCH v3 4/8] mpc5200: Add SPL support Stefan Roese

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=1348874032.5580.27@snotra \
    --to=scottwood@freescale.com \
    --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 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.