All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ralf Baechle <ralf@linux-mips.org>
To: Arnd Bergmann <arnd@arndb.de>
Cc: Kyle McMartin <kyle@mcmartin.ca>,
	linux-arch@vger.kernel.org, Kyle McMartin <kyle@redhat.com>
Subject: Re: [PATCH 13/19] mips: convert to generic init_task.c
Date: Thu, 11 Dec 2008 13:21:46 +0000	[thread overview]
Message-ID: <20081211132146.GA17667@linux-mips.org> (raw)
In-Reply-To: <200812111404.25597.arnd@arndb.de>

On Thu, Dec 11, 2008 at 02:04:25PM +0100, Arnd Bergmann wrote:

> On Thursday 11 December 2008, Kyle McMartin wrote:
> > - */
> > -union thread_union init_thread_union
> > -       __attribute__((__section__(".data.init_task"),
> > -                      __aligned__(THREAD_SIZE))) =
> > -               { INIT_THREAD_INFO(init_task) };
> > -
> 
> The __aligned__(THREAD_SIZE) is only present in sparc, mips and
> parisc (though the latter uses 128 byte align). I guess you
> verified that dropping it is ok for parisc, but is that also
> true for mips and sparc?

Duhh...  Good point.  The alignment is also enforced or at least should
be enforced in vmlinux.lds.S.  Which in case of MIPS

[...]
                . = ALIGN(_PAGE_SIZE);
                *(.data.init_task)
[...]

only enforces _PAGE_SIZE alignment and _PAGE_SIZE can be less than
THREAD_SIZE so removing the __aligned__ would have broken things.  Of
course that's a bug of the linker script not Kyle's patches.

  Ralf

  reply	other threads:[~2008-12-11 13:22 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-11  3:52 [RFC PATCH 00/19] unify init_task Kyle McMartin
2008-12-11  3:52 ` [PATCH 01/19] add HAVE_ARCH_INIT_TASK Kyle McMartin
2008-12-11  3:52 ` [PATCH 02/19] add generic kernel/init_task.c Kyle McMartin
2008-12-11  3:52 ` [PATCH 03/19] x86: convert to generic init_task.c Kyle McMartin
2008-12-11  3:52 ` [PATCH 04/19] alpha: rename .data.init_thread to .data.init_task Kyle McMartin
2008-12-11  3:52 ` [PATCH 05/19] alpha: convert to generic init_task.c Kyle McMartin
2008-12-11  3:52 ` [PATCH 06/19] arm: " Kyle McMartin
2008-12-12 19:29   ` Russell King
2008-12-11  3:52 ` [PATCH 07/19] avr32: " Kyle McMartin
2009-01-06 12:55   ` Haavard Skinnemoen
2009-01-06 12:55     ` Haavard Skinnemoen
2008-12-11  3:52 ` [PATCH 08/19] blackfin: " Kyle McMartin
2008-12-11 12:55   ` Arnd Bergmann
2008-12-11  3:52 ` [PATCH 09/19] frv: " Kyle McMartin
2008-12-11  3:52 ` [PATCH 10/19] h8300: " Kyle McMartin
2008-12-11 12:59   ` Arnd Bergmann
2008-12-11  3:52 ` [PATCH 11/19] m32r: " Kyle McMartin
2008-12-11  3:52 ` [PATCH 12/19] m68knommu: " Kyle McMartin
2008-12-11  3:52 ` [PATCH 13/19] mips: " Kyle McMartin
2008-12-11 13:04   ` Arnd Bergmann
2008-12-11 13:21     ` Ralf Baechle [this message]
2008-12-11  3:52 ` [PATCH 14/19] mn10300: " Kyle McMartin
2008-12-11  3:52 ` [PATCH 15/19] parisc: " Kyle McMartin
2008-12-11  3:52 ` [PATCH 16/19] powerpc: " Kyle McMartin
2008-12-11  3:52 ` [PATCH 17/19] s390: " Kyle McMartin
2008-12-11  3:52 ` [PATCH 18/19] sh: " Kyle McMartin
2008-12-11  3:52 ` [PATCH 19/19] xtensa: " Kyle McMartin
2008-12-11  8:57 ` [RFC PATCH 00/19] unify init_task Geert Uytterhoeven
2008-12-11 13:21   ` Arnd Bergmann
2008-12-11 14:02     ` Geert Uytterhoeven
2008-12-11 14:26       ` Arnd Bergmann
2008-12-11 12:56 ` Sam Ravnborg
2008-12-11 13:10 ` Arnd Bergmann
2008-12-11 13:23 ` Arnd Bergmann
2008-12-11 13:26 ` [PATCH] cris: convert to generic init_task Arnd Bergmann
2008-12-11 16:10 ` [RFC PATCH 00/19] unify init_task Arnd Bergmann

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=20081211132146.GA17667@linux-mips.org \
    --to=ralf@linux-mips.org \
    --cc=arnd@arndb.de \
    --cc=kyle@mcmartin.ca \
    --cc=kyle@redhat.com \
    --cc=linux-arch@vger.kernel.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 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.