Commit 2fabc7c1 authored by Greg Ungerer's avatar Greg Ungerer Committed by Linus Torvalds

[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: default avatarGreg Ungerer <gerg@snapgear.com>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent f800b0c0
...@@ -12,12 +12,6 @@ ...@@ -12,12 +12,6 @@
#ifdef __KERNEL__ #ifdef __KERNEL__
/*
* Size of kernel stack for each process. This must be a power of 2...
*/
#define THREAD_SIZE 8192 /* 2 pages */
#ifndef __ASSEMBLY__ #ifndef __ASSEMBLY__
/* /*
...@@ -59,7 +53,7 @@ static inline struct thread_info *current_thread_info(void) ...@@ -59,7 +53,7 @@ static inline struct thread_info *current_thread_info(void)
"move.l %%sp, %0 \n\t" "move.l %%sp, %0 \n\t"
"and.l %1, %0" "and.l %1, %0"
: "=&d"(ti) : "=&d"(ti)
: "d" (~(THREAD_SIZE-1)) : "di" (~(THREAD_SIZE-1))
); );
return ti; return ti;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment