Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 99513
b: refs/heads/master
c: 3351cc0
h: refs/heads/master
i:
  99511: 01ea618
v: v3
  • Loading branch information
Christoph Lameter authored and Ingo Molnar committed May 12, 2008
1 parent 9277c15 commit 440dc99
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 33 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: 006c484bb3d9547e82a33a09668c9b54b912c8fb
refs/heads/master: 3351cc03c0762353225a79507e38db4c1e656d52
49 changes: 17 additions & 32 deletions trunk/include/asm-x86/thread_info.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,23 @@ struct thread_info {
__u8 supervisor_stack[0];
#endif
};

#define INIT_THREAD_INFO(tsk) \
{ \
.task = &tsk, \
.exec_domain = &default_exec_domain, \
.flags = 0, \
.cpu = 0, \
.preempt_count = 1, \
.addr_limit = KERNEL_DS, \
.restart_block = { \
.fn = do_no_restart_syscall, \
}, \
}

#define init_thread_info (init_thread_union.thread_info)
#define init_stack (init_thread_union.stack)

#else /* !__ASSEMBLY__ */

#include <asm/asm-offsets.h>
Expand All @@ -62,22 +79,6 @@ struct thread_info {
*/
#ifndef __ASSEMBLY__

#define INIT_THREAD_INFO(tsk) \
{ \
.task = &tsk, \
.exec_domain = &default_exec_domain, \
.flags = 0, \
.cpu = 0, \
.preempt_count = 1, \
.addr_limit = KERNEL_DS, \
.restart_block = { \
.fn = do_no_restart_syscall, \
}, \
}

#define init_thread_info (init_thread_union.thread_info)
#define init_stack (init_thread_union.stack)


/* how to get the current stack pointer from C */
register unsigned long current_stack_pointer asm("esp") __used;
Expand Down Expand Up @@ -181,22 +182,6 @@ static inline struct thread_info *current_thread_info(void)
* preempt_count needs to be 1 initially, until the scheduler is functional.
*/
#ifndef __ASSEMBLY__
#define INIT_THREAD_INFO(tsk) \
{ \
.task = &tsk, \
.exec_domain = &default_exec_domain, \
.flags = 0, \
.cpu = 0, \
.preempt_count = 1, \
.addr_limit = KERNEL_DS, \
.restart_block = { \
.fn = do_no_restart_syscall, \
}, \
}

#define init_thread_info (init_thread_union.thread_info)
#define init_stack (init_thread_union.stack)

static inline struct thread_info *current_thread_info(void)
{
struct thread_info *ti;
Expand Down

0 comments on commit 440dc99

Please sign in to comment.