Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=40435792525c49cf126ba92d223e877acb5ce021
Commit:     40435792525c49cf126ba92d223e877acb5ce021
Parent:     99cce8f7b10716f8fdbaca21a7f3ba000119ad3b
Author:     Nicolas Pitre <[EMAIL PROTECTED]>
AuthorDate: Wed Feb 21 15:58:13 2007 +0100
Committer:  Russell King <[EMAIL PROTECTED]>
CommitDate: Thu May 3 21:03:48 2007 +0100

    [ARM] 4227/1: minor head.S fixups
    
    Let's surround constructs like:
    
        orr     r3, r3, #(KERNEL_RAM_PADDR & 0x00f00000)
    
    between .if .endif since (KERNEL_RAM_PADDR & 0x00f00000) is 0 in 99% of
    all cases.
    
    Also let's mask PHYS_OFFSET with 0x00f00000 instead of 0x00e00000.
    Section mappings are really 1MB not 2MB and the 2MB groupping is
    a higher level issue already much better enforced with
    
    #if (PHYS_OFFSET & 0x001fffff)
    #error "PHYS_OFFSET must be at an even 2MiB boundary!"
    #endif
    
    at the top of the file.
    
    Signed-off-by: Nicolas Pitre <[EMAIL PROTECTED]>
    Signed-off-by: Russell King <[EMAIL PROTECTED]>
---
 arch/arm/kernel/head.S |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/arch/arm/kernel/head.S b/arch/arm/kernel/head.S
index 66db0a9..1d35eda 100644
--- a/arch/arm/kernel/head.S
+++ b/arch/arm/kernel/head.S
@@ -257,7 +257,9 @@ __create_page_tables:
         * Map some ram to cover our .data and .bss areas.
         */
        orr     r3, r7, #(KERNEL_RAM_PADDR & 0xff000000)
+       .if     (KERNEL_RAM_PADDR & 0x00f00000)
        orr     r3, r3, #(KERNEL_RAM_PADDR & 0x00f00000)
+       .endif
        add     r0, r4,  #(KERNEL_RAM_VADDR & 0xff000000) >> 18
        str     r3, [r0, #(KERNEL_RAM_VADDR & 0x00f00000) >> 18]!
        ldr     r6, =(_end - 1)
@@ -274,7 +276,9 @@ __create_page_tables:
         */
        add     r0, r4, #PAGE_OFFSET >> 18
        orr     r6, r7, #(PHYS_OFFSET & 0xff000000)
-       orr     r6, r6, #(PHYS_OFFSET & 0x00e00000)
+       .if     (PHYS_OFFSET & 0x00f00000)
+       orr     r6, r6, #(PHYS_OFFSET & 0x00f00000)
+       .endif
        str     r6, [r0]
 
 #ifdef CONFIG_DEBUG_LL
-
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