From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755034AbZITRdv (ORCPT ); Sun, 20 Sep 2009 13:33:51 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755008AbZITRdt (ORCPT ); Sun, 20 Sep 2009 13:33:49 -0400 Received: from BISCAYNE-ONE-STATION.MIT.EDU ([18.7.7.80]:52622 "EHLO biscayne-one-station.mit.edu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754932AbZITRdt (ORCPT ); Sun, 20 Sep 2009 13:33:49 -0400 From: Tim Abbott To: Chen Liqin , Lennox Wu Cc: linux-kernel@vger.kernel.org, Sam Ravnborg , Tim Abbott Subject: [PATCH 2/3] Make THREAD_SIZE available to assembly files. Date: Sun, 20 Sep 2009 13:32:58 -0400 Message-Id: <1253467979-14110-3-git-send-email-tabbott@ksplice.com> X-Mailer: git-send-email 1.6.3.3 In-Reply-To: <1253467979-14110-1-git-send-email-tabbott@ksplice.com> References: <1253467979-14110-1-git-send-email-tabbott@ksplice.com> X-Spam-Flag: NO X-Spam-Score: 0.00 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: Tim Abbott --- 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 +#include + +/* 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 @@ -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