From: Zhong Hongbo <bocui107@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v9 07/15] ARM: Fix arm720t SPL build
Date: Fri, 17 Aug 2012 07:03:15 +0800 [thread overview]
Message-ID: <502D7C33.6090204@gmail.com> (raw)
In-Reply-To: <1345151056-16985-8-git-send-email-amartin@nvidia.com>
On 08/17/2012 05:04 AM, Allen Martin wrote:
> Take a few SPL fixes from armv7 and apply them to arm720t:
> -Use dummy exception handlers for SPL build
> -Initialize relocation register r9 to 0 for the case of no relocation
> -ifdef out interrupt handler code
>
> Signed-off-by: Allen Martin <amartin@nvidia.com>
> Acked-by: Stephen Warren <swarren@wwwdotorg.org>
> Tested-by: Thierry Reding <thierry.reding@avionic-design.de>
> Signed-off-by: Tom Warren <twarren@nvidia.com>
> ---
> arch/arm/cpu/arm720t/start.S | 13 +++++++++++++
> 1 file changed, 13 insertions(+)
>
> diff --git a/arch/arm/cpu/arm720t/start.S b/arch/arm/cpu/arm720t/start.S
> index 3b97e80..dc047b8 100644
> --- a/arch/arm/cpu/arm720t/start.S
> +++ b/arch/arm/cpu/arm720t/start.S
> @@ -51,6 +51,15 @@ _start: b reset
> ldr pc, _irq
> ldr pc, _fiq
>
> +#ifdef CONFIG_SPL_BUILD
> +_undefined_instruction: .word _undefined_instruction
> +_software_interrupt: .word _software_interrupt
> +_prefetch_abort: .word _prefetch_abort
> +_data_abort: .word _data_abort
> +_not_used: .word _not_used
> +_irq: .word _irq
> +_fiq: .word _fiq
> +#else
> _undefined_instruction: .word undefined_instruction
> _software_interrupt: .word software_interrupt
> _prefetch_abort: .word prefetch_abort
> @@ -58,6 +67,7 @@ _data_abort: .word data_abort
> _not_used: .word not_used
> _irq: .word irq
> _fiq: .word fiq
> +#endif /* CONFIG_SPL_BUILD */
>
> .balignl 16,0xdeadbeef
>
> @@ -167,6 +177,7 @@ stack_setup:
>
> adr r0, _start
> cmp r0, r6
> + moveq r9, #0 /* no relocation. relocation offset(r9) = 0 */
Hi Allen,
I have already do a patch to fix all the arm common issue:
http://patchwork.ozlabs.org/patch/174471/
[V2] arm: Fixed the offset for the no relocation.
Thanks,
hongbo
> beq clear_bss /* skip relocation */
> mov r1, r6 /* r1 <- scratch for copy_loop */
> ldr r3, _bss_start_ofs
> @@ -427,6 +438,7 @@ lock_loop:
> mov pc, lr
>
>
> +#ifndef CONFIG_SPL_BUILD
> /*
> *************************************************************************
> *
> @@ -589,6 +601,7 @@ fiq:
> bl do_fiq
>
> #endif
> +#endif /* CONFIG_SPL_BUILD */
>
> #if defined(CONFIG_NETARM)
> .align 5
>
f
next prev parent reply other threads:[~2012-08-16 23:03 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-16 21:04 [U-Boot] [PATCH v9 00/15] split tegra20 arm7 code into separate SPL Allen Martin
2012-08-16 21:04 ` [U-Boot] [PATCH v9 01/15] tegra20: rename tegra2 -> tegra20 Allen Martin
2012-08-16 21:04 ` [U-Boot] [PATCH v9 02/15] tegra20: move tegra20 SoC code to arch/arm/cpu/tegra20-common Allen Martin
2012-08-16 21:04 ` [U-Boot] [PATCH v9 03/15] tegra20: rename CONFIG_MACH_TEGRA_GENERIC Allen Martin
2012-08-16 21:04 ` [U-Boot] [PATCH v9 04/15] tegra20: tec: add tegra20-common-post.h Allen Martin
2012-08-16 21:04 ` [U-Boot] [PATCH v9 05/15] tegra20: make board mkdir commands unconditional Allen Martin
2012-08-16 21:04 ` [U-Boot] [PATCH v9 06/15] mkconfig: remove bashisms and cleanup config.mk generation Allen Martin
2012-08-16 21:04 ` [U-Boot] [PATCH v9 07/15] ARM: Fix arm720t SPL build Allen Martin
2012-08-16 23:03 ` Zhong Hongbo [this message]
2012-08-17 21:17 ` Allen Martin
2012-08-17 22:44 ` Zhong Hongbo
2012-08-18 6:59 ` Albert ARIBAUD
2012-08-16 21:04 ` [U-Boot] [PATCH v9 08/15] tegra20: remove timer_init from " Allen Martin
2012-08-16 21:04 ` [U-Boot] [PATCH v9 09/15] ARM: add tegra20 support to arm720t Allen Martin
2012-08-16 21:04 ` [U-Boot] [PATCH v9 10/15] tegra20: add u-boot-*-tegra.bin targets Allen Martin
2012-08-16 21:04 ` [U-Boot] [PATCH v9 11/15] tegra20: move SDRAM param save to later in boot Allen Martin
2012-08-16 21:04 ` [U-Boot] [PATCH v9 12/15] tegra20: enable SPL for tegra20 boards Allen Martin
2012-08-16 21:04 ` [U-Boot] [PATCH v9 13/15] arm: enable libgcc build for SPL Allen Martin
2012-08-16 21:04 ` [U-Boot] [PATCH v9 14/15] spl: fix SPL build of private libgcc Allen Martin
2012-08-16 21:04 ` [U-Boot] [PATCH v9 15/15] tegra20: Remove armv4t build flags Allen Martin
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=502D7C33.6090204@gmail.com \
--to=bocui107@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox