Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 83068
b: refs/heads/master
c: 8245525
h: refs/heads/master
v: v3
  • Loading branch information
Dave Hansen authored and Linus Torvalds committed Feb 5, 2008
1 parent 8b2e784 commit a3e8b5d
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 5 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: ec4dd3eb35759f9fbeb5c1abb01403b2fde64cc9
refs/heads/master: 824552574162ac00ae636fa41386b1072379ea4a
3 changes: 2 additions & 1 deletion trunk/include/asm-ia64/processor.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
* each (assuming 8KB page size), for a total of 8TB of user virtual
* address space.
*/
#define TASK_SIZE (current->thread.task_size)
#define TASK_SIZE_OF(tsk) ((tsk)->thread.task_size)
#define TASK_SIZE TASK_SIZE_OF(current)

/*
* This decides where the kernel will search for a free chunk of vm
Expand Down
2 changes: 2 additions & 0 deletions trunk/include/asm-mips/processor.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ extern unsigned int vced_count, vcei_count;
#define TASK_UNMAPPED_BASE \
(test_thread_flag(TIF_32BIT_ADDR) ? \
PAGE_ALIGN(TASK_SIZE32 / 3) : PAGE_ALIGN(TASK_SIZE / 3))
#define TASK_SIZE_OF(tsk) \
(test_tsk_thread_flag(tsk, TIF_32BIT_ADDR) ? TASK_SIZE32 : TASK_SIZE)
#endif

#define NUM_FPU_REGS 32
Expand Down
3 changes: 2 additions & 1 deletion trunk/include/asm-parisc/processor.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@
#endif
#define current_text_addr() ({ void *pc; current_ia(pc); pc; })

#define TASK_SIZE (current->thread.task_size)
#define TASK_SIZE_OF(tsk) ((tsk)->thread.task_size)
#define TASK_SIZE TASK_SIZE_OF(current)
#define TASK_UNMAPPED_BASE (current->thread.map_base)

#define DEFAULT_TASK_SIZE32 (0xFFF00000UL)
Expand Down
3 changes: 2 additions & 1 deletion trunk/include/asm-powerpc/processor.h
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,9 @@ extern struct task_struct *last_task_used_spe;
*/
#define TASK_SIZE_USER32 (0x0000000100000000UL - (1*PAGE_SIZE))

#define TASK_SIZE (test_thread_flag(TIF_32BIT) ? \
#define TASK_SIZE_OF(tsk) (test_tsk_thread_flag(tsk, TIF_32BIT) ? \
TASK_SIZE_USER32 : TASK_SIZE_USER64)
#define TASK_SIZE TASK_SIZE_OF(current)

/* This decides where the kernel will search for a free chunk of vm
* space during mmap's.
Expand Down
3 changes: 2 additions & 1 deletion trunk/include/asm-s390/processor.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,9 @@ extern int get_cpu_capability(unsigned int *);

#else /* __s390x__ */

# define TASK_SIZE (test_thread_flag(TIF_31BIT) ? \
# define TASK_SIZE_OF(tsk) (test_tsk_thread_flag(tsk, TIF_31BIT) ? \
(0x80000000UL) : (0x40000000000UL))
# define TASK_SIZE TASK_SIZE_OF(current)
# define TASK_UNMAPPED_BASE (TASK_SIZE / 2)
# define DEFAULT_TASK_SIZE (0x40000000000UL)

Expand Down
4 changes: 4 additions & 0 deletions trunk/include/linux/sched.h
Original file line number Diff line number Diff line change
Expand Up @@ -2087,6 +2087,10 @@ static inline void migration_init(void)
}
#endif

#ifndef TASK_SIZE_OF
#define TASK_SIZE_OF(tsk) TASK_SIZE
#endif

#endif /* __KERNEL__ */

#endif

0 comments on commit a3e8b5d

Please sign in to comment.