Commit 683520ca authored by Todd Inglett's avatar Todd Inglett

Subtract PGDIR_SIZE to work around a bug in free_pgtables

parent 6d4c02fa
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
#include <asm/ppcdebug.h> #include <asm/ppcdebug.h>
#include <asm/a.out.h> #include <asm/a.out.h>
#endif #endif
#include <asm/pgtable.h>
#include <asm/ptrace.h> #include <asm/ptrace.h>
#include <asm/types.h> #include <asm/types.h>
...@@ -620,7 +621,8 @@ extern struct task_struct *last_task_used_math; ...@@ -620,7 +621,8 @@ extern struct task_struct *last_task_used_math;
#ifdef __KERNEL__ #ifdef __KERNEL__
/* 64-bit user address space is 41-bits (2TBs user VM) */ /* 64-bit user address space is 41-bits (2TBs user VM) */
#define TASK_SIZE_USER64 (0x0000020000000000UL) /* Subtract PGDIR_SIZE to work around a bug in free_pgtables */
#define TASK_SIZE_USER64 (0x0000020000000000UL - PGDIR_SIZE)
/* /*
* 32-bit user address space is 4GB - 1 page * 32-bit user address space is 4GB - 1 page
......
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