Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 92328
b: refs/heads/master
c: 18628e4
h: refs/heads/master
v: v3
  • Loading branch information
Robert P. J. Day authored and Bryan Wu committed Apr 24, 2008
1 parent f9d259d commit d73cbc3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 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: 2d191233882a031304f41cfc6abfb70536780645
refs/heads/master: 18628e4375264edb53e6d9aaaf91f1a480019304
11 changes: 4 additions & 7 deletions trunk/include/asm-blackfin/thread_info.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,14 +81,11 @@ struct thread_info {
#define init_thread_info (init_thread_union.thread_info)
#define init_stack (init_thread_union.stack)

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

static inline struct thread_info *current_thread_info(void)
__attribute__ ((__const__));

/* Given a task stack pointer, you can find it's task structure
* just by masking it to the 8K boundary.
/* Given a task stack pointer, you can find its corresponding
* thread_info structure just by masking it to the THREAD_SIZE
* boundary (currently 8K as you can see above).
*/
__attribute_const__
static inline struct thread_info *current_thread_info(void)
{
struct thread_info *ti;
Expand Down

0 comments on commit d73cbc3

Please sign in to comment.