EZX uses the first memory page to indicate the bootloader special cases like
resume or entering a bootloader mode that passes the GSM UART to USB. Therefor
we reserve the first page.

Signed-off-by: Stefan Schmidt <[EMAIL PROTECTED]>
Signed-off-by: Daniel Ribeiro <[EMAIL PROTECTED]>

Index: linux-2.6-arm/arch/arm/mm/init.c
===================================================================
--- linux-2.6-arm.orig/arch/arm/mm/init.c
+++ linux-2.6-arm/arch/arm/mm/init.c
@@ -239,6 +239,11 @@
        reserve_bootmem_node(pgdat, boot_pfn << PAGE_SHIFT,
                             boot_pages << PAGE_SHIFT, BOOTMEM_DEFAULT);
 
+#ifdef CONFIG_PXA_EZX
+       /* Reserve the first memory page for exiting sleep and user off */
+       reserve_bootmem_node(pgdat, PHYS_OFFSET, PAGE_SIZE, BOOTMEM_DEFAULT);
+#endif
+
 #ifdef CONFIG_BLK_DEV_INITRD
        /*
         * If the initrd is in this node, reserve its memory.

-- 

Reply via email to