From: Paul Mundt <lethal@linux-sh.org>
To: Oskar Schirmer <os@emlix.com>
Cc: Andrew Morton <akpm@linux-foundation.org>,
Johannes Weiner <jw@emlix.com>,
David Howells <dhowells@redhat.com>,
Russell King <rmk@arm.linux.org.uk>,
Bryan Wu <cooloney@kernel.org>,
Geert Uytterhoeven <geert@linux-m68k.org>,
Mike Frysinger <vapier.adi@gmail.com>,
Greg Ungerer <gerg@uclinux.org>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH -v3] flat: fix data sections alignment
Date: Tue, 10 Mar 2009 16:33:50 +0900 [thread overview]
Message-ID: <20090310073350.GH10393@linux-sh.org> (raw)
In-Reply-To: <E1LfGwO-0007Kq-6c@mailer.emlix.com>
On Thu, Mar 05, 2009 at 06:00:59PM +0100, Oskar Schirmer wrote:
> The flat loader uses an architecture's flat_stack_align() to align the
> stack but assumes word-alignment is enough for the data sections.
>
> However, on the Xtensa S6000 we have registers up to 128bit width
> which can be used from userspace and therefor need userspace stack and
> data-section alignment of at least this size.
>
> This patch drops flat_stack_align() and uses the same alignment that
> is required for slab caches, ARCH_SLAB_MINALIGN, or wordsize if it's
> not defined by the architecture.
>
> It also fixes m32r which was obviously kaput, aligning an
> uninitialized stack entry instead of the stack pointer.
>
> Signed-off-by: Oskar Schirmer <os@emlix.com>
> Signed-off-by: Johannes Weiner <jw@emlix.com>
> Cc: David Howells <dhowells@redhat.com>
> Cc: Russell King <rmk@arm.linux.org.uk>
> Cc: Bryan Wu <cooloney@kernel.org>
> Cc: Geert Uytterhoeven <geert@linux-m68k.org>
> Cc: Paul Mundt <lethal@linux-sh.org>
> Cc: Greg Ungerer <gerg@uclinux.org>
> Cc: Mike Frysinger <vapier.adi@gmail.com>
The updated version looks ok to me anyways, and it's certainly an
improvement over defining the same alignment requirements all over the
place.
Acked-by: Paul Mundt <lethal@linux-sh.org>
next prev parent reply other threads:[~2009-03-10 7:37 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-05 17:00 Oskar Schirmer
2009-03-10 7:33 ` Paul Mundt [this message]
2009-04-02 20:53 ` Andrew Morton
2009-04-09 14:25 ` Johannes Weiner
2009-05-05 14:08 ` Johannes Weiner
2009-05-27 11:49 ` Johannes Weiner
2009-05-27 20:43 ` Andrew Morton
2009-05-28 0:08 ` Paul Mundt
2009-05-28 0:16 ` Andrew Morton
2009-06-01 7:44 ` Michal Simek
2009-06-02 14:15 ` Oskar Schirmer
2009-06-02 18:57 ` Mike Frysinger
2009-06-10 4:34 ` Greg Ungerer
2009-05-27 18:05 ` Mike Frysinger
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=20090310073350.GH10393@linux-sh.org \
--to=lethal@linux-sh.org \
--cc=akpm@linux-foundation.org \
--cc=cooloney@kernel.org \
--cc=dhowells@redhat.com \
--cc=geert@linux-m68k.org \
--cc=gerg@uclinux.org \
--cc=jw@emlix.com \
--cc=linux-kernel@vger.kernel.org \
--cc=os@emlix.com \
--cc=rmk@arm.linux.org.uk \
--cc=vapier.adi@gmail.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: 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
Powered by JetHome