Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=d4afe414189b098d56bcd24280c018aa2ac9a990
Commit:     d4afe414189b098d56bcd24280c018aa2ac9a990
Parent:     88f3aec7afd9ae3e6f6d221801996b69aad1e3a4
Author:     Ingo Molnar <[EMAIL PROTECTED]>
AuthorDate: Thu Feb 21 13:39:30 2008 +0100
Committer:  Ingo Molnar <[EMAIL PROTECTED]>
CommitDate: Tue Feb 26 12:55:56 2008 +0100

    x86: rename KERNEL_TEXT_SIZE => KERNEL_IMAGE_SIZE
    
    The KERNEL_TEXT_SIZE constant was mis-named, as we not only map the kernel
    text but data, bss and init sections as well.
    
    That name led me on the wrong path with the KERNEL_TEXT_SIZE regression,
    because i knew how big of _text_ my images have and i knew about the 40 MB
    "text" limit so i wrongly thought to be on the safe side of the 40 MB limit
    with my 29 MB of text, while the total image size was slightly above 40 MB.
    
    Signed-off-by: Ingo Molnar <[EMAIL PROTECTED]>
---
 arch/x86/kernel/head_64.S |    2 +-
 include/asm-x86/page_64.h |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/arch/x86/kernel/head_64.S b/arch/x86/kernel/head_64.S
index b037b15..a007454 100644
--- a/arch/x86/kernel/head_64.S
+++ b/arch/x86/kernel/head_64.S
@@ -393,7 +393,7 @@ NEXT_PAGE(level2_kernel_pgt)
         *  too.)
         */
        PMDS(0, __PAGE_KERNEL_LARGE_EXEC|_PAGE_GLOBAL,
-               KERNEL_TEXT_SIZE/PMD_SIZE)
+               KERNEL_IMAGE_SIZE/PMD_SIZE)
 
 NEXT_PAGE(level2_spare_pgt)
        .fill   512, 8, 0
diff --git a/include/asm-x86/page_64.h b/include/asm-x86/page_64.h
index 3e2e3ca..1435460 100644
--- a/include/asm-x86/page_64.h
+++ b/include/asm-x86/page_64.h
@@ -51,8 +51,8 @@
  * Kernel image size is limited to 128 MB (see level2_kernel_pgt in
  * arch/x86/kernel/head_64.S), and it is mapped here:
  */
-#define KERNEL_TEXT_SIZE       (128*1024*1024)
-#define KERNEL_TEXT_START      _AC(0xffffffff80000000, UL)
+#define KERNEL_IMAGE_SIZE      (128*1024*1024)
+#define KERNEL_IMAGE_START     _AC(0xffffffff80000000, UL)
 
 #ifndef __ASSEMBLY__
 void clear_page(void *page);
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to