Commit ad6f4f3e authored by WANG Rui's avatar WANG Rui Committed by Ard Biesheuvel
Browse files

efi/loongarch: Implement efi_cache_sync_image()



Provide a LoongArch implementation of efi_cache_sync_image() to ensure
instruction cache coherency after the kernel image is relocated.

Signed-off-by: default avatarWANG Rui <r@hev.cc>
Reviewed-by: default avatarHuacai Chen <chenhuacai@loongson.cn>
Signed-off-by: default avatarArd Biesheuvel <ardb@kernel.org>
parent 883a3279
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -18,6 +18,11 @@ efi_status_t check_platform_features(void)
	return EFI_SUCCESS;
}

void efi_cache_sync_image(unsigned long image_base, unsigned long alloc_size)
{
	asm volatile ("ibar 0" ::: "memory");
}

struct exit_boot_struct {
	efi_memory_desc_t	*runtime_map;
	int			runtime_entry_count;