Skip to content

Commit 55dc2f8

Browse files
committed
LoongArch: Fix reserving screen info memory for above-4G firmware
Since screen_info.lfb_base is a __u32 type, an above-4G address need an ext_lfb_base to present its higher 32bits. In init_screen_info() we can use __screen_info_lfb_base() to handle this case for reserving screen info memory. Signed-off-by: Xuefeng Zhao <zhaoxuefeng@loongson.cn> Signed-off-by: Jianmin Lv <lvjianmin@loongson.cn> Signed-off-by: Tianyang Zhang <zhangtianyang@loongson.cn> Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
1 parent 40384c8 commit 55dc2f8

File tree

1 file changed

+1
-1
lines changed
  • arch/loongarch/kernel

1 file changed

+1
-1
lines changed

arch/loongarch/kernel/efi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ static void __init init_screen_info(void)
9595
memset(si, 0, sizeof(*si));
9696
early_memunmap(si, sizeof(*si));
9797

98-
memblock_reserve(screen_info.lfb_base, screen_info.lfb_size);
98+
memblock_reserve(__screen_info_lfb_base(&screen_info), screen_info.lfb_size);
9999
}
100100

101101
void __init efi_init(void)

0 commit comments

Comments
 (0)