mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
m68knommu: remove size limit on non-MMU TASK_SIZE
The TASK_SIZE define is used in some places as a limit on the size of the virtual address space of a process. On non-MMU systems those addresses used in comparison will be physical addresses, and they could be anywhere in the 32bit physical address space. So for !CONFIG_MMU systems set the TASK_SIZE to the maximum physical address. Signed-off-by: Greg Ungerer <gerg@uclinux.org>
This commit is contained in:
parent
9fcce0baea
commit
cc24c40594
1 changed files with 4 additions and 0 deletions
|
@ -44,11 +44,15 @@ static inline void wrusp(unsigned long usp)
|
||||||
* User space process size: 3.75GB. This is hardcoded into a few places,
|
* User space process size: 3.75GB. This is hardcoded into a few places,
|
||||||
* 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
|
||||||
#ifndef CONFIG_SUN3
|
#ifndef CONFIG_SUN3
|
||||||
#define TASK_SIZE (0xF0000000UL)
|
#define TASK_SIZE (0xF0000000UL)
|
||||||
#else
|
#else
|
||||||
#define TASK_SIZE (0x0E000000UL)
|
#define TASK_SIZE (0x0E000000UL)
|
||||||
#endif
|
#endif
|
||||||
|
#else
|
||||||
|
#define TASK_SIZE (0xFFFFFFFFUL)
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef __KERNEL__
|
#ifdef __KERNEL__
|
||||||
#define STACK_TOP TASK_SIZE
|
#define STACK_TOP TASK_SIZE
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue