From: santosh.shilimkar@ti.com (Santosh Shilimkar)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2 4/5] ARM: omap3: Thumb-2 compatibility for sram34xx.S
Date: Fri, 4 Feb 2011 00:12:23 +0530 [thread overview]
Message-ID: <005b089b2f42b0f2204d621b01f0d968@mail.gmail.com> (raw)
In-Reply-To: <1296756161-26092-5-git-send-email-dave.martin@linaro.org>
> -----Original Message-----
> From: Dave Martin [mailto:dave.martin at linaro.org]
> Sent: Thursday, February 03, 2011 11:33 PM
> To: linux-arm-kernel at lists.infradead.org
> Cc: Dave Martin; Tony Lindgren; Santosh Shilimkar; Jean Pihet;
> linux-omap at vger.kernel.org; Nicolas Pitre
> Subject: [PATCH v2 4/5] ARM: omap3: Thumb-2 compatibility for
> sram34xx.S
>
> * Remove deprecated/undefined PC-relative stores
> * Add the required ENDPROC() directive for each ENTRY().
> * .align before data words
>
> Signed-off-by: Dave Martin <dave.martin@linaro.org>
OMAP3 core DVFS needs to be tested with this change.
> ---
> arch/arm/mach-omap2/sram34xx.S | 28 ++++++++++++++++++++--------
> 1 files changed, 20 insertions(+), 8 deletions(-)
>
> diff --git a/arch/arm/mach-omap2/sram34xx.S b/arch/arm/mach-
> omap2/sram34xx.S
> index 7f893a2..829d235 100644
> --- a/arch/arm/mach-omap2/sram34xx.S
> +++ b/arch/arm/mach-omap2/sram34xx.S
> @@ -116,24 +116,34 @@ ENTRY(omap3_sram_configure_core_dpll)
>
> @ pull the extra args off the
stack
> @ and store them in SRAM
> +
> +@ PC-relative stores lead to undefined behaviour in Thumb-2: use a
> r7 as a
> +@ base instead.
> +@ Be careful not to clobber r7 when maintaing this file.
> + THUMB( adr r7, omap3_sram_configure_core_dpll
)
> + .macro strtext Rt:req, label:req
> + ARM( str \Rt, \label
)
> + THUMB( str \Rt, [r7, \label - omap3_sram_configure_core_dpll]
> )
> + .endm
> +
> ldr r4, [sp, #52]
> - str r4, omap_sdrc_rfr_ctrl_0_val
> + strtext r4, omap_sdrc_rfr_ctrl_0_val
> ldr r4, [sp, #56]
> - str r4, omap_sdrc_actim_ctrl_a_0_val
> + strtext r4, omap_sdrc_actim_ctrl_a_0_val
> ldr r4, [sp, #60]
> - str r4, omap_sdrc_actim_ctrl_b_0_val
> + strtext r4, omap_sdrc_actim_ctrl_b_0_val
> ldr r4, [sp, #64]
> - str r4, omap_sdrc_mr_0_val
> + strtext r4, omap_sdrc_mr_0_val
> ldr r4, [sp, #68]
> - str r4, omap_sdrc_rfr_ctrl_1_val
> + strtext r4, omap_sdrc_rfr_ctrl_1_val
> cmp r4, #0 @ if SDRC_RFR_CTRL_1 is 0,
> beq skip_cs1_params @ do not use cs1 params
> ldr r4, [sp, #72]
> - str r4, omap_sdrc_actim_ctrl_a_1_val
> + strtext r4, omap_sdrc_actim_ctrl_a_1_val
> ldr r4, [sp, #76]
> - str r4, omap_sdrc_actim_ctrl_b_1_val
> + strtext r4, omap_sdrc_actim_ctrl_b_1_val
> ldr r4, [sp, #80]
> - str r4, omap_sdrc_mr_1_val
> + strtext r4, omap_sdrc_mr_1_val
> skip_cs1_params:
> mrc p15, 0, r8, c1, c0, 0 @ read ctrl register
> bic r10, r8, #0x800 @ clear Z-bit, disable branch
> prediction
> @@ -271,6 +281,7 @@ skip_cs1_prog:
> ldr r12, [r11] @ posted-write barrier for SDRC
> bx lr
>
> + .align
> omap3_sdrc_power:
> .word OMAP34XX_SDRC_REGADDR(SDRC_POWER)
> omap3_cm_clksel1_pll:
> @@ -319,6 +330,7 @@ omap3_sdrc_dlla_ctrl:
> .word OMAP34XX_SDRC_REGADDR(SDRC_DLLA_CTRL)
> core_m2_mask_val:
> .word 0x07FFFFFF
> +ENDPROC(omap3_sram_configure_core_dpll)
>
> ENTRY(omap3_sram_configure_core_dpll_sz)
> .word . - omap3_sram_configure_core_dpll
> --
> 1.7.1
next prev parent reply other threads:[~2011-02-03 18:42 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-03 18:02 [PATCH v2 0/5] ARM: omap[34]: Thumb-2 compatibility fixes Dave Martin
2011-02-03 18:02 ` [PATCH v2 1/5] ARM: omap4: Correct definition of do_wfi() for CONFIG_THUMB2_KERNEL Dave Martin
2011-02-03 18:39 ` Santosh Shilimkar
2011-02-03 19:07 ` Russell King - ARM Linux
2011-02-03 19:30 ` [PATCH v2 1/5] ARM: omap4: Correct definition of do_wfi() forCONFIG_THUMB2_KERNEL Santosh Shilimkar
2011-02-04 10:58 ` Dave Martin
2011-02-04 11:18 ` Santosh Shilimkar
2011-02-03 18:02 ` [PATCH v2 2/5] ARM: omap4: Convert END() to ENDPROC() for correct linkage with CONFIG_THUMB2_KERNEL Dave Martin
2011-02-03 18:02 ` [PATCH v2 3/5] ARM: omap3: Remove hand-encoded SMC instructions Dave Martin
2011-02-03 18:38 ` Santosh Shilimkar
2011-02-03 18:02 ` [PATCH v2 4/5] ARM: omap3: Thumb-2 compatibility for sram34xx.S Dave Martin
2011-02-03 18:42 ` Santosh Shilimkar [this message]
2011-02-03 18:02 ` [PATCH v2 5/5] ARM: omap3: Thumb-2 compatibility for sleep34xx.S Dave Martin
2011-02-03 18:47 ` Santosh Shilimkar
2011-02-10 22:17 ` Kevin Hilman
2011-02-11 0:07 ` Kevin Hilman
2011-02-11 13:49 ` Dave Martin
2011-02-11 9:43 ` Dave Martin
2011-02-04 10:45 ` [PATCH v2 0/5] ARM: omap[34]: Thumb-2 compatibility fixes Santosh Shilimkar
2011-02-04 11:02 ` Dave Martin
2011-02-04 11:16 ` Santosh Shilimkar
2011-02-04 11:18 ` Dave Martin
2011-02-04 16:41 ` Dave Martin
2011-02-08 17:40 ` Dave Martin
2011-02-09 5:45 ` Santosh Shilimkar
2011-02-09 9:49 ` Dave Martin
2011-02-10 21:38 ` Kevin Hilman
2011-02-11 9:36 ` Dave 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=005b089b2f42b0f2204d621b01f0d968@mail.gmail.com \
--to=santosh.shilimkar@ti.com \
--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 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).