Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 138770
b: refs/heads/master
c: 7543c1d
h: refs/heads/master
v: v3
  • Loading branch information
Yinghai Lu authored and H. Peter Anvin committed Mar 15, 2009
1 parent 57f88da commit beed272
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6de6cb442e76bbaf2e685150be8ddac0f237a59c
refs/heads/master: 7543c1de84ed93c6769c9f20dced08a522af8912
5 changes: 5 additions & 0 deletions trunk/arch/x86/include/asm/page_32_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@
#define __VIRTUAL_MASK_SHIFT 32
#endif /* CONFIG_X86_PAE */

/*
* Kernel image size is limited to 512 MB (see in arch/x86/kernel/head_32.S)
*/
#define KERNEL_IMAGE_SIZE (512 * 1024 * 1024)

#ifndef __ASSEMBLY__

/*
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/x86/kernel/head_32.S
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
*
* This should be a multiple of a page.
*/
LOW_PAGES = 1<<(32-PAGE_SHIFT_asm)
LOW_PAGES = (KERNEL_IMAGE_SIZE + PAGE_SIZE_asm - 1)>>PAGE_SHIFT

/*
* To preserve the DMA pool in PAGEALLOC kernels, we'll allocate
Expand Down

0 comments on commit beed272

Please sign in to comment.