Commit 2c9b82ad authored by Greg Ungerer's avatar Greg Ungerer

m68k: add TASK definitions for ColdFires running with MMU

Add appropriate TASK_SIZE and TASK_UNMAPPED_BASE definitions for running
on ColdFire V4e cores with MMU enabled.
Signed-off-by: default avatarGreg Ungerer <gerg@uclinux.org>
Acked-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
Acked-by: default avatarMatt Waddel <mwaddel@yahoo.com>
Acked-by: default avatarKurt Mahan <kmahan@xmission.com>
parent 78ccdffc
...@@ -48,10 +48,12 @@ static inline void wrusp(unsigned long usp) ...@@ -48,10 +48,12 @@ static inline void wrusp(unsigned long usp)
* so don't change it unless you know what you are doing. * so don't change it unless you know what you are doing.
*/ */
#ifdef CONFIG_MMU #ifdef CONFIG_MMU
#ifndef CONFIG_SUN3 #if defined(CONFIG_COLDFIRE)
#define TASK_SIZE (0xF0000000UL) #define TASK_SIZE (0xC0000000UL)
#else #elif defined(CONFIG_SUN3)
#define TASK_SIZE (0x0E000000UL) #define TASK_SIZE (0x0E000000UL)
#else
#define TASK_SIZE (0xF0000000UL)
#endif #endif
#else #else
#define TASK_SIZE (0xFFFFFFFFUL) #define TASK_SIZE (0xFFFFFFFFUL)
...@@ -66,10 +68,12 @@ static inline void wrusp(unsigned long usp) ...@@ -66,10 +68,12 @@ static inline void wrusp(unsigned long usp)
* space during mmap's. * space during mmap's.
*/ */
#ifdef CONFIG_MMU #ifdef CONFIG_MMU
#ifndef CONFIG_SUN3 #if defined(CONFIG_COLDFIRE)
#define TASK_UNMAPPED_BASE 0xC0000000UL #define TASK_UNMAPPED_BASE 0x60000000UL
#else #elif defined(CONFIG_SUN3)
#define TASK_UNMAPPED_BASE 0x0A000000UL #define TASK_UNMAPPED_BASE 0x0A000000UL
#else
#define TASK_UNMAPPED_BASE 0xC0000000UL
#endif #endif
#define TASK_UNMAPPED_ALIGN(addr, off) PAGE_ALIGN(addr) #define TASK_UNMAPPED_ALIGN(addr, off) PAGE_ALIGN(addr)
#else #else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment