efi: Discover BTI support in runtime services regions
[platform/kernel/linux-starfive.git] / arch / arm64 / kernel / efi.c
index fab05de..78ffd5a 100644 (file)
@@ -110,7 +110,8 @@ static int __init set_permissions(pte_t *ptep, unsigned long addr, void *data)
 }
 
 int __init efi_set_mapping_permissions(struct mm_struct *mm,
-                                      efi_memory_desc_t *md)
+                                      efi_memory_desc_t *md,
+                                      bool has_bti)
 {
        BUG_ON(md->type != EFI_RUNTIME_SERVICES_CODE &&
               md->type != EFI_RUNTIME_SERVICES_DATA);