diff options
| author | Jeremy Fitzhardinge <[email protected]> | 2007-05-02 19:27:16 +0200 |
|---|---|---|
| committer | Andi Kleen <[email protected]> | 2007-05-02 19:27:16 +0200 |
| commit | 9ce8c2ed12550f90fd6e902990652b13df647793 (patch) | |
| tree | e4fbef8305cd99c3b619220eea0fd7706da45b91 /scripts/basic | |
| parent | c5413fbe894924ddb8aa474a4d4da52e7a6c7e0b (diff) | |
[PATCH] i386: map enough initial memory to create lowmem mappings
head.S creates the very initial pagetable for the kernel. This just
maps enough space for the kernel itself, and an allocation bitmap.
The amount of mapped memory is rounded up to 4Mbytes, and so this
typically ends up mapping 8Mbytes of memory.
When booting, pagetable_init() needs to create mappings for all
lowmem, and the pagetables for these mappings are allocated from the
free pages around the kernel in low memory. If the number of
pagetable pages + kernel size exceeds head.S's initial mapping, it
will end up faulting on an unmapped page. This will only happen with
specific combinations of kernel size and memory size.
This patch makes sure that head.S also maps enough space to fit the
kernel pagetables as well as the kernel itself. It ends up using an
additional two pages of unreclaimable memory.
Signed-off-by: Jeremy Fitzhardinge <[email protected]>
Signed-off-by: Andi Kleen <[email protected]>
Acked-by: "H. Peter Anvin" <[email protected]>
Cc: Andi Kleen <[email protected]>
Cc: Zachary Amsden <[email protected]>
Cc: Chris Wright <[email protected]>
Cc: "Eric W. Biederman" <[email protected]>
Cc: Linus Torvalds <[email protected]>,
Diffstat (limited to 'scripts/basic')
0 files changed, 0 insertions, 0 deletions