diff options
| -rw-r--r-- | arch/x86/kernel/devicetree.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/x86/kernel/devicetree.c b/arch/x86/kernel/devicetree.c index 690bc8461835..9aeb78a23de4 100644 --- a/arch/x86/kernel/devicetree.c +++ b/arch/x86/kernel/devicetree.c | |||
| @@ -13,6 +13,7 @@ | |||
| 13 | #include <linux/slab.h> | 13 | #include <linux/slab.h> |
| 14 | #include <linux/pci.h> | 14 | #include <linux/pci.h> |
| 15 | #include <linux/of_pci.h> | 15 | #include <linux/of_pci.h> |
| 16 | #include <linux/initrd.h> | ||
| 16 | 17 | ||
| 17 | #include <asm/hpet.h> | 18 | #include <asm/hpet.h> |
| 18 | #include <asm/irq_controller.h> | 19 | #include <asm/irq_controller.h> |
| @@ -98,6 +99,16 @@ void * __init early_init_dt_alloc_memory_arch(u64 size, u64 align) | |||
| 98 | return __alloc_bootmem(size, align, __pa(MAX_DMA_ADDRESS)); | 99 | return __alloc_bootmem(size, align, __pa(MAX_DMA_ADDRESS)); |
| 99 | } | 100 | } |
| 100 | 101 | ||
| 102 | #ifdef CONFIG_BLK_DEV_INITRD | ||
| 103 | void __init early_init_dt_setup_initrd_arch(unsigned long start, | ||
| 104 | unsigned long end) | ||
| 105 | { | ||
| 106 | initrd_start = (unsigned long)__va(start); | ||
| 107 | initrd_end = (unsigned long)__va(end); | ||
| 108 | initrd_below_start_ok = 1; | ||
| 109 | } | ||
| 110 | #endif | ||
| 111 | |||
| 101 | void __init add_dtb(u64 data) | 112 | void __init add_dtb(u64 data) |
| 102 | { | 113 | { |
| 103 | initial_dtb = data + offsetof(struct setup_data, data); | 114 | initial_dtb = data + offsetof(struct setup_data, data); |
