public inbox for linux-arch@vger.kernel.org
 help / color / mirror / Atom feed
From: Arnd Bergmann <arnd@arndb.de>
To: Kyle McMartin <kyle@mcmartin.ca>, Jeff Dike <jdike@addtoit.com>
Cc: linux-arch@vger.kernel.org
Subject: Re: [RFC PATCH 00/19] unify init_task
Date: Thu, 11 Dec 2008 14:10:31 +0100	[thread overview]
Message-ID: <200812111410.31837.arnd@arndb.de> (raw)
In-Reply-To: <cover.1228966585.git.kyle@mcmartin.ca>

Leave arch/x86/kernel/init_task.c hanging around with the cpu0_irqstack
definition in it, a later patch can move it to an appropriate place and
nuke the file.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
On Thursday 11 December 2008, Kyle McMartin wrote:

> Unconverted architectures so far are m68k (because it doesn't use an explicit
> init_task.c), ia64 (because it faffs about with init_thread_union), and
> sparc{,64} (which appear to rely on some magic.)

Apparently, you also forget arch/um. It is similar to the x86 version.

--- a/arch/um/kernel/init_task.c
+++ b/arch/um/kernel/init_task.c
@@ -10,34 +10,10 @@
 #include "linux/mqueue.h"
 #include "asm/uaccess.h"
 
-static struct fs_struct init_fs = INIT_FS;
-struct mm_struct init_mm = INIT_MM(init_mm);
-static struct signal_struct init_signals = INIT_SIGNALS(init_signals);
-static struct sighand_struct init_sighand = INIT_SIGHAND(init_sighand);
-EXPORT_SYMBOL(init_mm);
-
-/*
- * Initial task structure.
- *
- * All other task structs will be allocated on slabs in fork.c
- */
-
-struct task_struct init_task = INIT_TASK(init_task);
-
-EXPORT_SYMBOL(init_task);
-
 /*
- * Initial thread structure.
- *
- * We need to make sure that this is aligned due to the
- * way process stacks are handled. This is done by having a special
- * "init_task" linker map entry..
+ * This definition is left over from the move to kernel/init_task.c
  */
 
-union thread_union init_thread_union
-	__attribute__((__section__(".data.init_task"))) =
-		{ INIT_THREAD_INFO(init_task) };
-
 union thread_union cpu0_irqstack
 	__attribute__((__section__(".data.init_irqstack"))) =
 		{ INIT_THREAD_INFO(init_task) };

  parent reply	other threads:[~2008-12-11 13:10 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
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 [this message]
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=200812111410.31837.arnd@arndb.de \
    --to=arnd@arndb.de \
    --cc=jdike@addtoit.com \
    --cc=kyle@mcmartin.ca \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox