From: Tim Abbott <tabbott@ksplice.com>
To: Chen Liqin <liqin.chen@sunplusct.com>,
Lennox Wu <lennox.wu@sunplusct.com>
Cc: linux-kernel@vger.kernel.org, Sam Ravnborg <sam@ravnborg.org>,
Tim Abbott <tabbott@ksplice.com>
Subject: [PATCH 2/3] Make THREAD_SIZE available to assembly files.
Date: Sun, 20 Sep 2009 13:32:58 -0400 [thread overview]
Message-ID: <1253467979-14110-3-git-send-email-tabbott@ksplice.com> (raw)
In-Reply-To: <1253467979-14110-1-git-send-email-tabbott@ksplice.com>
Signed-off-by: Tim Abbott <tabbott@ksplice.com>
---
arch/score/include/asm/thread_info.h | 15 +++++++++------
1 files changed, 9 insertions(+), 6 deletions(-)
diff --git a/arch/score/include/asm/thread_info.h b/arch/score/include/asm/thread_info.h
index 3a11228..5593999 100644
--- a/arch/score/include/asm/thread_info.h
+++ b/arch/score/include/asm/thread_info.h
@@ -7,6 +7,15 @@
#define KU_USER 0x08
#define KU_KERN 0x00
+#include <asm/page.h>
+#include <linux/const.h>
+
+/* thread information allocation */
+#define THREAD_SIZE_ORDER (1)
+#define THREAD_SIZE (PAGE_SIZE << THREAD_SIZE_ORDER)
+#define THREAD_MASK (THREAD_SIZE - _AC(1,UL))
+#define __HAVE_ARCH_THREAD_INFO_ALLOCATOR
+
#ifndef __ASSEMBLY__
#include <asm/processor.h>
@@ -62,12 +71,6 @@ struct thread_info {
register struct thread_info *__current_thread_info __asm__("r28");
#define current_thread_info() __current_thread_info
-/* thread information allocation */
-#define THREAD_SIZE_ORDER (1)
-#define THREAD_SIZE (PAGE_SIZE << THREAD_SIZE_ORDER)
-#define THREAD_MASK (THREAD_SIZE - 1UL)
-#define __HAVE_ARCH_THREAD_INFO_ALLOCATOR
-
#define alloc_thread_info(tsk) kmalloc(THREAD_SIZE, GFP_KERNEL)
#define free_thread_info(info) kfree(info)
--
1.6.3.3
next prev parent reply other threads:[~2009-09-20 17:33 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-20 17:32 [PATCH 0/3] Linker script cleanup patches for score Tim Abbott
2009-09-20 17:32 ` [PATCH 1/3] score: Make PAGE_SIZE available to assembly Tim Abbott
2009-09-20 17:39 ` Sam Ravnborg
2009-09-20 17:32 ` Tim Abbott [this message]
2009-09-20 17:40 ` [PATCH 2/3] Make THREAD_SIZE available to assembly files Sam Ravnborg
2009-09-20 17:32 ` [PATCH 3/3] score: Cleanup linker script using new macros Tim Abbott
2009-09-20 17:41 ` Sam Ravnborg
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=1253467979-14110-3-git-send-email-tabbott@ksplice.com \
--to=tabbott@ksplice.com \
--cc=lennox.wu@sunplusct.com \
--cc=linux-kernel@vger.kernel.org \
--cc=liqin.chen@sunplusct.com \
--cc=sam@ravnborg.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
all inboxes | Powered by JetHome®