On Mon, 15 Oct 2007, Matt Mackall wrote:
> Index: l/include/asm-mips/processor.h
> ===================================================================
> --- l.orig/include/asm-mips/processor.h 2007-10-09 17:37:58.000000000 -0500
> +++ l/include/asm-mips/processor.h 2007-10-10 11:46:30.000000000 -0500
> @@ -45,6 +45,8 @@ extern unsigned int vced_count, vcei_cou
> * space during mmap's.
> */
> #define TASK_UNMAPPED_BASE (PAGE_ALIGN(TASK_SIZE / 3))
> +#define TASK_SIZE_OF(tsk) \
> + (test_thread_flag(TIF_32BIT_ADDR) ? TASK_SIZE32 : TASK_SIZE)
> #endif
>
> #ifdef CONFIG_64BIT
> @@ -65,6 +67,8 @@ extern unsigned int vced_count, vcei_cou
> #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_thread_flag(TIF_32BIT_ADDR) ? TASK_SIZE32 : TASK_SIZE)
> #endif
>
> #define NUM_FPU_REGS 32
These need to use test_tsk_thread_flag(tsk, TIF_32BIT_ADDR).
> Index: l/include/asm-parisc/processor.h
> ===================================================================
> --- l.orig/include/asm-parisc/processor.h 2007-10-09 17:36:49.000000000 -0500
> +++ l/include/asm-parisc/processor.h 2007-10-10 11:46:30.000000000 -0500
> @@ -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 (current->thread.task_size)
> #define TASK_UNMAPPED_BASE (current->thread.map_base)
>
> #define DEFAULT_TASK_SIZE32 (0xFFF00000UL)
TASK_SIZE_OF() should be defined in terms of TASK_SIZE, just like it is
for ia64.
> Index: l/include/asm-powerpc/processor.h
> ===================================================================
> --- l.orig/include/asm-powerpc/processor.h 2007-10-09 17:37:58.000000000 -0500
> +++ l/include/asm-powerpc/processor.h 2007-10-10 11:46:30.000000000 -0500
> @@ -99,7 +99,9 @@ extern struct task_struct *last_task_use
> */
> #define TASK_SIZE_USER32 (0x0000000100000000UL - (1*PAGE_SIZE))
>
> -#define TASK_SIZE (test_thread_flag(TIF_32BIT) ? \
> +#define TASK_SIZE (test_thread_flag(TIF_32BIT) ? \
> + TASK_SIZE_USER32 : TASK_SIZE_USER64)
> +#define TASK_SIZE_OF(tsk) (test_tsk_thread_flag(tsk, TIF_32BIT) ? \
> TASK_SIZE_USER32 : TASK_SIZE_USER64)
>
Same.
> /* This decides where the kernel will search for a free chunk of vm
> Index: l/include/asm-s390/processor.h
> ===================================================================
> --- l.orig/include/asm-s390/processor.h 2007-10-09 17:37:58.000000000 -0500
> +++ l/include/asm-s390/processor.h 2007-10-10 11:46:30.000000000 -0500
> @@ -75,6 +75,8 @@ extern struct task_struct *last_task_use
>
> # define TASK_SIZE (test_thread_flag(TIF_31BIT) ? \
> (0x80000000UL) : (0x40000000000UL))
> +# define TASK_SIZE_OF(tsk) (test_tsk_thread_flag(tsk, TIF_31BIT) ? \
> + (0x80000000UL) : (0x40000000000UL))
> # define TASK_UNMAPPED_BASE (TASK_SIZE / 2)
> # define DEFAULT_TASK_SIZE (0x40000000000UL)
>
Same.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]