From fa09d64cbde2f33d787d97dd492d75f00dd40f3a Mon Sep 17 00:00:00 2001 From: Paul Mackerras Date: Thu, 29 Jun 2006 16:16:15 +1000 Subject: [PATCH] --- yaml --- r: 31191 b: refs/heads/master c: 1729dc7833014eaba3520091a673dbdc9242d9f9 h: refs/heads/master i: 31189: 5459176f042f17682aad41c6e4be7267c751b4c3 31187: 5126b5dd51b1011ba35d49aa844cdf8f8d53fbf3 31183: 06dbcd1ffdd1f12f97026d932967cdfa56146247 v: v3 --- [refs] | 2 +- trunk/include/asm-powerpc/mmu_context.h | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 1c8e8679d47c..d1211d7aad06 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 489244498ec99c949ecbd7105299066cff283dcd +refs/heads/master: 1729dc7833014eaba3520091a673dbdc9242d9f9 diff --git a/trunk/include/asm-powerpc/mmu_context.h b/trunk/include/asm-powerpc/mmu_context.h index 8c6b1a6d944f..083ac917bd29 100644 --- a/trunk/include/asm-powerpc/mmu_context.h +++ b/trunk/include/asm-powerpc/mmu_context.h @@ -25,8 +25,13 @@ static inline void enter_lazy_tlb(struct mm_struct *mm, { } +/* + * The proto-VSID space has 2^35 - 1 segments available for user mappings. + * Each segment contains 2^28 bytes. Each context maps 2^44 bytes, + * so we can support 2^19-1 contexts (19 == 35 + 28 - 44). + */ #define NO_CONTEXT 0 -#define MAX_CONTEXT (0x100000-1) +#define MAX_CONTEXT ((1UL << 19) - 1) extern int init_new_context(struct task_struct *tsk, struct mm_struct *mm); extern void destroy_context(struct mm_struct *mm);