diff options
Diffstat (limited to 'arch/arm/include/asm/efi.h')
-rw-r--r-- | arch/arm/include/asm/efi.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/arch/arm/include/asm/efi.h b/arch/arm/include/asm/efi.h index c91e330616ad..e0eea72deb87 100644 --- a/arch/arm/include/asm/efi.h +++ b/arch/arm/include/asm/efi.h | |||
@@ -57,4 +57,27 @@ void efi_virtmap_unload(void); | |||
57 | #define efi_init() | 57 | #define efi_init() |
58 | #endif /* CONFIG_EFI */ | 58 | #endif /* CONFIG_EFI */ |
59 | 59 | ||
60 | /* arch specific definitions used by the stub code */ | ||
61 | |||
62 | #define efi_call_early(f, ...) sys_table_arg->boottime->f(__VA_ARGS__) | ||
63 | |||
64 | /* | ||
65 | * A reasonable upper bound for the uncompressed kernel size is 32 MBytes, | ||
66 | * so we will reserve that amount of memory. We have no easy way to tell what | ||
67 | * the actuall size of code + data the uncompressed kernel will use. | ||
68 | * If this is insufficient, the decompressor will relocate itself out of the | ||
69 | * way before performing the decompression. | ||
70 | */ | ||
71 | #define MAX_UNCOMP_KERNEL_SIZE SZ_32M | ||
72 | |||
73 | /* | ||
74 | * The kernel zImage should preferably be located between 32 MB and 128 MB | ||
75 | * from the base of DRAM. The min address leaves space for a maximal size | ||
76 | * uncompressed image, and the max address is due to how the zImage decompressor | ||
77 | * picks a destination address. | ||
78 | */ | ||
79 | #define ZIMAGE_OFFSET_LIMIT SZ_128M | ||
80 | #define MIN_ZIMAGE_OFFSET MAX_UNCOMP_KERNEL_SIZE | ||
81 | #define MAX_FDT_OFFSET ZIMAGE_OFFSET_LIMIT | ||
82 | |||
60 | #endif /* _ASM_ARM_EFI_H */ | 83 | #endif /* _ASM_ARM_EFI_H */ |