From: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> To: Tony Lindgren <tony@atomide.com>, linux-omap@vger.kernel.org Cc: Nicolas Pitre <nicolas.pitre@linaro.org>, Richard Woodruff <r-woodruff2@ti.com>, Russell King <linux@arm.linux.org.uk>, Kees Cook <keescook@chromium.org>, Tero Kristo <t-kristo@ti.com>, Nishanth Menon <menon.nishanth@gmail.com>, Laura Abbott <labbott@redhat.com>, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 3/5] ARM: OMAP2+: Fix save_secure_ram_context for rodata Date: Tue, 19 Jan 2016 21:45:51 +0300 [thread overview] Message-ID: <569E845F.7080001@cogentembedded.com> (raw) In-Reply-To: <1453225734-16993-4-git-send-email-tony@atomide.com> Hello. On 01/19/2016 08:48 PM, Tony Lindgren wrote: > We don't want to write to .text and we can move save_secure_ram_context > into .data as it all gets copied into SRAM anyways. > > Cc: Kees Cook <keescook@chromium.org> > Cc: Laura Abbott <labbott@redhat.com> > Cc: Nicolas Pitre <nicolas.pitre@linaro.org> > Cc: Nishanth Menon <menon.nishanth@gmail.com> > Cc: Richard Woodruff <r-woodruff2@ti.com> > Cc: Russell King <linux@arm.linux.org.uk> > Cc: Tero Kristo <t-kristo@ti.com> > Signed-off-by: Tony Lindgren <tony@atomide.com> > --- > arch/arm/mach-omap2/sleep34xx.S | 10 ++++++++-- > 1 file changed, 8 insertions(+), 2 deletions(-) > > diff --git a/arch/arm/mach-omap2/sleep34xx.S b/arch/arm/mach-omap2/sleep34xx.S > index f7c7bf8..042e4fb 100644 > --- a/arch/arm/mach-omap2/sleep34xx.S > +++ b/arch/arm/mach-omap2/sleep34xx.S > @@ -93,8 +93,12 @@ ENTRY(enable_omap3630_toggle_l2_on_restore) > ldmfd sp!, {pc} @ restore regs and return > ENDPROC(enable_omap3630_toggle_l2_on_restore) > > - .text > -/* Function to call rom code to save secure ram context */ > +/* > + * Function to call rom code to save secure ram context, This gets s/,/./? > + * relocated to SRAM, so it can be all in .data section. Otherwise > + * we need to initialize api_params separately. > + */ > + .data > .align 3 > ENTRY(save_secure_ram_context) > stmfd sp!, {r4 - r11, lr} @ save registers on stack [...] MBR, Sergei
WARNING: multiple messages have this Message-ID (diff)
From: sergei.shtylyov@cogentembedded.com (Sergei Shtylyov) To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 3/5] ARM: OMAP2+: Fix save_secure_ram_context for rodata Date: Tue, 19 Jan 2016 21:45:51 +0300 [thread overview] Message-ID: <569E845F.7080001@cogentembedded.com> (raw) In-Reply-To: <1453225734-16993-4-git-send-email-tony@atomide.com> Hello. On 01/19/2016 08:48 PM, Tony Lindgren wrote: > We don't want to write to .text and we can move save_secure_ram_context > into .data as it all gets copied into SRAM anyways. > > Cc: Kees Cook <keescook@chromium.org> > Cc: Laura Abbott <labbott@redhat.com> > Cc: Nicolas Pitre <nicolas.pitre@linaro.org> > Cc: Nishanth Menon <menon.nishanth@gmail.com> > Cc: Richard Woodruff <r-woodruff2@ti.com> > Cc: Russell King <linux@arm.linux.org.uk> > Cc: Tero Kristo <t-kristo@ti.com> > Signed-off-by: Tony Lindgren <tony@atomide.com> > --- > arch/arm/mach-omap2/sleep34xx.S | 10 ++++++++-- > 1 file changed, 8 insertions(+), 2 deletions(-) > > diff --git a/arch/arm/mach-omap2/sleep34xx.S b/arch/arm/mach-omap2/sleep34xx.S > index f7c7bf8..042e4fb 100644 > --- a/arch/arm/mach-omap2/sleep34xx.S > +++ b/arch/arm/mach-omap2/sleep34xx.S > @@ -93,8 +93,12 @@ ENTRY(enable_omap3630_toggle_l2_on_restore) > ldmfd sp!, {pc} @ restore regs and return > ENDPROC(enable_omap3630_toggle_l2_on_restore) > > - .text > -/* Function to call rom code to save secure ram context */ > +/* > + * Function to call rom code to save secure ram context, This gets s/,/./? > + * relocated to SRAM, so it can be all in .data section. Otherwise > + * we need to initialize api_params separately. > + */ > + .data > .align 3 > ENTRY(save_secure_ram_context) > stmfd sp!, {r4 - r11, lr} @ save registers on stack [...] MBR, Sergei
next prev parent reply other threads:[~2016-01-19 18:45 UTC|newest] Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top 2016-01-19 17:48 [PATCH 0/5] omap assembly fixes for CONFIG_DEBUG_RODATA Tony Lindgren 2016-01-19 17:48 ` Tony Lindgren 2016-01-19 17:48 ` [PATCH 1/5] ARM: OMAP2+: Fix wait_dll_lock_timed for rodata Tony Lindgren 2016-01-19 17:48 ` Tony Lindgren 2016-01-19 17:48 ` [PATCH 2/5] ARM: OMAP2+: Fix l2dis_3630 " Tony Lindgren 2016-01-19 17:48 ` Tony Lindgren 2016-01-19 18:10 ` Nicolas Pitre 2016-01-19 18:10 ` Nicolas Pitre 2016-01-19 18:40 ` Tony Lindgren 2016-01-19 18:40 ` Tony Lindgren 2016-01-19 17:48 ` [PATCH 3/5] ARM: OMAP2+: Fix save_secure_ram_context " Tony Lindgren 2016-01-19 17:48 ` Tony Lindgren 2016-01-19 18:45 ` Sergei Shtylyov [this message] 2016-01-19 18:45 ` Sergei Shtylyov 2016-01-19 21:57 ` Tony Lindgren 2016-01-19 21:57 ` Tony Lindgren 2016-01-19 17:48 ` [PATCH 4/5] ARM: OMAP2+: Fix l2_inv_api_params " Tony Lindgren 2016-01-19 17:48 ` Tony Lindgren 2016-01-19 17:48 ` [PATCH 5/5] ARM: OMAP2+: Fix ppa_zero_params and ppa_por_params " Tony Lindgren 2016-01-19 17:48 ` Tony Lindgren 2016-01-19 18:12 ` [PATCH 0/5] omap assembly fixes for CONFIG_DEBUG_RODATA Kees Cook 2016-01-19 18:12 ` Kees Cook 2016-01-21 19:12 [PATCH v2 " Tony Lindgren 2016-01-21 19:12 ` [PATCH 3/5] ARM: OMAP2+: Fix save_secure_ram_context for rodata Tony Lindgren 2016-01-21 19:12 ` Tony Lindgren
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=569E845F.7080001@cogentembedded.com \ --to=sergei.shtylyov@cogentembedded.com \ --cc=keescook@chromium.org \ --cc=labbott@redhat.com \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-omap@vger.kernel.org \ --cc=linux@arm.linux.org.uk \ --cc=menon.nishanth@gmail.com \ --cc=nicolas.pitre@linaro.org \ --cc=r-woodruff2@ti.com \ --cc=t-kristo@ti.com \ --cc=tony@atomide.com \ /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: linkBe 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.