summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGreg Ungerer <gerg@snapgear.com>2005-01-09 15:58:56 -0800
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-01-09 15:58:56 -0800
commit2fabc7c1e9338b51b1337a96e47012cd55be8e29 (patch)
tree76f2ca32630c6529d1d83e24e73796b7d64c9393 /include
parentf800b0c06dad3b39c205ba6289560e55ffced15e (diff)
[PATCH] m68knommu: remove duplicate THREAD_SIZE define
Remove duplicated definition of THREAD_SIZE, it is defined in page.h. Also modify asm constraints to explicilty let gas know that the input arg is a constant in the current_thread_info() function. Patch originally submitted by Philippe De Muyter <phdm@macqel.be> Signed-off-by: Greg Ungerer <gerg@snapgear.com> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include')
-rw-r--r--include/asm-m68knommu/thread_info.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/include/asm-m68knommu/thread_info.h b/include/asm-m68knommu/thread_info.h
index dcdc2b33dcf7..72d8839531d0 100644
--- a/include/asm-m68knommu/thread_info.h
+++ b/include/asm-m68knommu/thread_info.h
@@ -12,12 +12,6 @@
#ifdef __KERNEL__
-/*
- * Size of kernel stack for each process. This must be a power of 2...
- */
-#define THREAD_SIZE 8192 /* 2 pages */
-
-
#ifndef __ASSEMBLY__
/*
@@ -59,7 +53,7 @@ static inline struct thread_info *current_thread_info(void)
"move.l %%sp, %0 \n\t"
"and.l %1, %0"
: "=&d"(ti)
- : "d" (~(THREAD_SIZE-1))
+ : "di" (~(THREAD_SIZE-1))
);
return ti;
}