All of lore.kernel.org
 help / color / mirror / Atom feed
From: Arnd Bergmann <arnd@arndb.de>
To: Kyle McMartin <kyle@mcmartin.ca>,
	Mikael Starvik <starvik@axis.com>,
	Jesper Nilsson <jesper.nilsson@axis.com>,
	dev-etrax@axis.com
Cc: linux-arch@vger.kernel.org
Subject: [PATCH] cris: convert to generic init_task
Date: Thu, 11 Dec 2008 14:26:24 +0100	[thread overview]
Message-ID: <200812111426.24751.arnd@arndb.de> (raw)
In-Reply-To: <cover.1228966585.git.kyle@mcmartin.ca>

Cc: Mikael Starvik <starvik@axis.com>
Cc: Jesper Nilsson <jesper.nilsson@axis.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>

---

This assumes that the kernel/init_task.c file is already present.

--- a/arch/cris/kernel/process.c
+++ b/arch/cris/kernel/process.c
@@ -31,40 +31,6 @@
 //#define DEBUG
 
 /*
- * Initial task structure. Make this a per-architecture thing,
- * because different architectures tend to have different
- * alignment requirements and potentially different initial
- * setup.
- */
-
-static struct fs_struct init_fs = INIT_FS;
-static struct signal_struct init_signals = INIT_SIGNALS(init_signals);
-static struct sighand_struct init_sighand = INIT_SIGHAND(init_sighand);
-struct mm_struct init_mm = INIT_MM(init_mm);
-
-EXPORT_SYMBOL(init_mm);
-
-/*
- * Initial thread structure.
- *
- * We need to make sure that this is 8192-byte aligned due to the
- * way process stacks are handled. This is done by having a special
- * "init_task" linker map entry..
- */
-union thread_union init_thread_union 
-	__attribute__((__section__(".data.init_task"))) =
-		{ INIT_THREAD_INFO(init_task) };
-
-/*
- * 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);
-
-/*
  * The hlt_counter, disable_hlt and enable_hlt is just here as a hook if
  * there would ever be a halt sequence (for power save when idle) with
  * some largish delay when halting or resuming *and* a driver that can't

  parent reply	other threads:[~2008-12-11 13:31 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
2008-12-11 13:23 ` Arnd Bergmann
2008-12-11 13:26 ` Arnd Bergmann [this message]
2008-12-11 16:10 ` 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=200812111426.24751.arnd@arndb.de \
    --to=arnd@arndb.de \
    --cc=dev-etrax@axis.com \
    --cc=jesper.nilsson@axis.com \
    --cc=kyle@mcmartin.ca \
    --cc=linux-arch@vger.kernel.org \
    --cc=starvik@axis.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 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.