Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 63083
b: refs/heads/master
c: 12a7991
h: refs/heads/master
i:
  63081: c9dbeb4
  63079: 76f3e33
v: v3
  • Loading branch information
Mike Frysinger authored and Bryan Wu committed Jul 25, 2007
1 parent 11e4876 commit 149c79a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0fa63ad7d1450a7ea2b5e5f60bbc64f5ed5a5adc
refs/heads/master: 12a7991180f44e7d993a3a0a442890fc3de67f57
12 changes: 6 additions & 6 deletions trunk/include/asm-blackfin/thread_info.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@
*/
#define ALIGN_PAGE_MASK 0xffffe000

/*
* Size of kernel stack for each process. This must be a power of 2...
*/
#define THREAD_SIZE 8192 /* 2 pages */

#ifndef __ASSEMBLY__

typedef unsigned long mm_segment_t;
Expand Down Expand Up @@ -76,11 +81,6 @@ struct thread_info {
#define init_thread_info (init_thread_union.thread_info)
#define init_stack (init_thread_union.stack)

/*
* Size of kernel stack for each process. This must be a power of 2...
*/
#define THREAD_SIZE 8192 /* 2 pages */

/* How to get the thread information struct from C */

static inline struct thread_info *current_thread_info(void)
Expand All @@ -94,7 +94,7 @@ static inline struct thread_info *current_thread_info(void)
struct thread_info *ti;
__asm__("%0 = sp;": "=&d"(ti):
);
return (struct thread_info *)((long)ti & ~8191UL);
return (struct thread_info *)((long)ti & ~((long)THREAD_SIZE-1));
}

/* thread information allocation */
Expand Down

0 comments on commit 149c79a

Please sign in to comment.