Loading arch/m32r/mm/discontig.c +2 −2 Original line number Diff line number Diff line Loading @@ -111,9 +111,9 @@ unsigned long __init setup_memory(void) initrd_start, INITRD_SIZE); } else { printk("initrd extends beyond end of memory " "(0x%08lx > 0x%08lx)\ndisabling initrd\n", "(0x%08lx > 0x%08llx)\ndisabling initrd\n", INITRD_START + INITRD_SIZE, PFN_PHYS(max_low_pfn)); (unsigned long long)PFN_PHYS(max_low_pfn)); initrd_start = 0; } Loading arch/powerpc/Kconfig +3 −0 Original line number Diff line number Diff line Loading @@ -22,6 +22,9 @@ config WORD_SIZE config PPC_MERGE def_bool y config ARCH_PHYS_ADDR_T_64BIT def_bool PPC64 || PHYS_64BIT config MMU bool default y Loading arch/powerpc/include/asm/types.h +0 −7 Original line number Diff line number Diff line Loading @@ -48,13 +48,6 @@ typedef struct { typedef __vector128 vector128; /* Physical address used by some IO functions */ #if defined(CONFIG_PPC64) || defined(CONFIG_PHYS_64BIT) typedef u64 phys_addr_t; #else typedef u32 phys_addr_t; #endif #ifdef __powerpc64__ typedef u64 dma_addr_t; #else Loading arch/powerpc/platforms/Kconfig.cputype +0 −1 Original line number Diff line number Diff line Loading @@ -135,7 +135,6 @@ config PTE_64BIT config PHYS_64BIT bool 'Large physical address support' if E500 depends on 44x || E500 select RESOURCES_64BIT default y if 44x ---help--- This option enables kernel support for larger than 32-bit physical Loading arch/powerpc/sysdev/ppc4xx_pci.c +6 −10 Original line number Diff line number Diff line Loading @@ -41,13 +41,10 @@ extern unsigned long total_memory; #define U64_TO_U32_LOW(val) ((u32)((val) & 0x00000000ffffffffULL)) #define U64_TO_U32_HIGH(val) ((u32)((val) >> 32)) #ifdef CONFIG_RESOURCES_64BIT #define RES_TO_U32_LOW(val) U64_TO_U32_LOW(val) #define RES_TO_U32_HIGH(val) U64_TO_U32_HIGH(val) #else #define RES_TO_U32_LOW(val) (val) #define RES_TO_U32_HIGH(val) (0) #endif #define RES_TO_U32_LOW(val) \ ((sizeof(resource_size_t) > sizeof(u32)) ? U64_TO_U32_LOW(val) : (val)) #define RES_TO_U32_HIGH(val) \ ((sizeof(resource_size_t) > sizeof(u32)) ? U64_TO_U32_HIGH(val) : (0)) static inline int ppc440spe_revA(void) { Loading Loading @@ -145,12 +142,11 @@ static int __init ppc4xx_parse_dma_ranges(struct pci_controller *hose, /* Use that */ res->start = pci_addr; #ifndef CONFIG_RESOURCES_64BIT /* Beware of 32 bits resources */ if ((pci_addr + size) > 0x100000000ull) if (sizeof(resource_size_t) == sizeof(u32) && (pci_addr + size) > 0x100000000ull) res->end = 0xffffffff; else #endif res->end = res->start + size - 1; break; } Loading Loading
arch/m32r/mm/discontig.c +2 −2 Original line number Diff line number Diff line Loading @@ -111,9 +111,9 @@ unsigned long __init setup_memory(void) initrd_start, INITRD_SIZE); } else { printk("initrd extends beyond end of memory " "(0x%08lx > 0x%08lx)\ndisabling initrd\n", "(0x%08lx > 0x%08llx)\ndisabling initrd\n", INITRD_START + INITRD_SIZE, PFN_PHYS(max_low_pfn)); (unsigned long long)PFN_PHYS(max_low_pfn)); initrd_start = 0; } Loading
arch/powerpc/Kconfig +3 −0 Original line number Diff line number Diff line Loading @@ -22,6 +22,9 @@ config WORD_SIZE config PPC_MERGE def_bool y config ARCH_PHYS_ADDR_T_64BIT def_bool PPC64 || PHYS_64BIT config MMU bool default y Loading
arch/powerpc/include/asm/types.h +0 −7 Original line number Diff line number Diff line Loading @@ -48,13 +48,6 @@ typedef struct { typedef __vector128 vector128; /* Physical address used by some IO functions */ #if defined(CONFIG_PPC64) || defined(CONFIG_PHYS_64BIT) typedef u64 phys_addr_t; #else typedef u32 phys_addr_t; #endif #ifdef __powerpc64__ typedef u64 dma_addr_t; #else Loading
arch/powerpc/platforms/Kconfig.cputype +0 −1 Original line number Diff line number Diff line Loading @@ -135,7 +135,6 @@ config PTE_64BIT config PHYS_64BIT bool 'Large physical address support' if E500 depends on 44x || E500 select RESOURCES_64BIT default y if 44x ---help--- This option enables kernel support for larger than 32-bit physical Loading
arch/powerpc/sysdev/ppc4xx_pci.c +6 −10 Original line number Diff line number Diff line Loading @@ -41,13 +41,10 @@ extern unsigned long total_memory; #define U64_TO_U32_LOW(val) ((u32)((val) & 0x00000000ffffffffULL)) #define U64_TO_U32_HIGH(val) ((u32)((val) >> 32)) #ifdef CONFIG_RESOURCES_64BIT #define RES_TO_U32_LOW(val) U64_TO_U32_LOW(val) #define RES_TO_U32_HIGH(val) U64_TO_U32_HIGH(val) #else #define RES_TO_U32_LOW(val) (val) #define RES_TO_U32_HIGH(val) (0) #endif #define RES_TO_U32_LOW(val) \ ((sizeof(resource_size_t) > sizeof(u32)) ? U64_TO_U32_LOW(val) : (val)) #define RES_TO_U32_HIGH(val) \ ((sizeof(resource_size_t) > sizeof(u32)) ? U64_TO_U32_HIGH(val) : (0)) static inline int ppc440spe_revA(void) { Loading Loading @@ -145,12 +142,11 @@ static int __init ppc4xx_parse_dma_ranges(struct pci_controller *hose, /* Use that */ res->start = pci_addr; #ifndef CONFIG_RESOURCES_64BIT /* Beware of 32 bits resources */ if ((pci_addr + size) > 0x100000000ull) if (sizeof(resource_size_t) == sizeof(u32) && (pci_addr + size) > 0x100000000ull) res->end = 0xffffffff; else #endif res->end = res->start + size - 1; break; } Loading