lkml.org 
[lkml]   [2003]   [Jan]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC][PATCH] allow bigger PAGE_OFFSET with PAE
On Tue, Jan 07, 2003 at 12:06:38PM -0800, Dave Hansen wrote:
> Also, this gets the kernel's pagetables right, but neglects
> userspace's for now. pgd_alloc() needs to be fixed to allocate
> another PMD, if the split isn't PMD-alighed.

Um, that should be automatic when USER_PTRS_PER_PGD is increased.

I see the following:

$ grep -n TASK_SIZE include/asm-i386/*.h
include/asm-i386/a.out.h:22:#define STACK_TOP TASK_SIZE
include/asm-i386/elf.h:60:#define ELF_ET_DYN_BASE (TASK_SIZE / 3 * 2)
include/asm-i386/pgtable.h:68:#define USER_PTRS_PER_PGD (TASK_SIZE/PGDIR_SIZE)
include/asm-i386/processor.h:277:#define TASK_SIZE (PAGE_OFFSET)
include/asm-i386/processor.h:282:#define TASK_UNMAPPED_BASE (PAGE_ALIGN(TASK_SIZE / 3))


... which sounds like you need to round up in an overflow-safe fashion
in the macro.


Bill
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:32    [W:0.040 / U:1.380 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site