aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/firmware/efi/arm-runtime.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/firmware/efi/arm-runtime.c')
-rw-r--r--drivers/firmware/efi/arm-runtime.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/drivers/firmware/efi/arm-runtime.c b/drivers/firmware/efi/arm-runtime.c
index ae001450545f..7c75a8d9091a 100644
--- a/drivers/firmware/efi/arm-runtime.c
+++ b/drivers/firmware/efi/arm-runtime.c
@@ -39,6 +39,26 @@ static struct mm_struct efi_mm = {
39 .mmlist = LIST_HEAD_INIT(efi_mm.mmlist), 39 .mmlist = LIST_HEAD_INIT(efi_mm.mmlist),
40}; 40};
41 41
42#ifdef CONFIG_ARM64_PTDUMP
43#include <asm/ptdump.h>
44
45static struct ptdump_info efi_ptdump_info = {
46 .mm = &efi_mm,
47 .markers = (struct addr_marker[]){
48 { 0, "UEFI runtime start" },
49 { TASK_SIZE_64, "UEFI runtime end" }
50 },
51 .base_addr = 0,
52};
53
54static int __init ptdump_init(void)
55{
56 return ptdump_register(&efi_ptdump_info, "efi_page_tables");
57}
58device_initcall(ptdump_init);
59
60#endif
61
42static bool __init efi_virtmap_init(void) 62static bool __init efi_virtmap_init(void)
43{ 63{
44 efi_memory_desc_t *md; 64 efi_memory_desc_t *md;