summaryrefslogtreecommitdiff
path: root/arch/x86/include/asm/e820/api.h
diff options
context:
space:
mode:
authorAshish Kalra <ashish.kalra@amd.com>2024-04-26 00:41:56 +0000
committerBorislav Petkov (AMD) <bp@alien8.de>2024-04-29 11:15:31 +0200
commitd6d85ac15cce4dcf02cf8c96cb970562be6a3529 (patch)
treec5897a76271542365c5c632f5fcd27fb96ac2ea1 /arch/x86/include/asm/e820/api.h
parente67572cd2204894179d89bd7b984072f19313b03 (diff)
x86/e820: Add a new e820 table update helper
Add a new API helper e820__range_update_table() with which to update an arbitrary e820 table. Move all current users of e820__range_update_kexec() to this new helper. [ bp: Massage. ] Signed-off-by: Ashish Kalra <ashish.kalra@amd.com> Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de> Link: https://lore.kernel.org/r/b726af213ad55053f8a7a1e793b01bb3f1ca9dd5.1714090302.git.ashish.kalra@amd.com
Diffstat (limited to 'arch/x86/include/asm/e820/api.h')
-rw-r--r--arch/x86/include/asm/e820/api.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/include/asm/e820/api.h b/arch/x86/include/asm/e820/api.h
index e8f58ddd06d9..2e74a7f0e935 100644
--- a/arch/x86/include/asm/e820/api.h
+++ b/arch/x86/include/asm/e820/api.h
@@ -17,6 +17,7 @@ extern bool e820__mapped_all(u64 start, u64 end, enum e820_type type);
extern void e820__range_add (u64 start, u64 size, enum e820_type type);
extern u64 e820__range_update(u64 start, u64 size, enum e820_type old_type, enum e820_type new_type);
extern u64 e820__range_remove(u64 start, u64 size, enum e820_type old_type, bool check_type);
+extern u64 e820__range_update_table(struct e820_table *t, u64 start, u64 size, enum e820_type old_type, enum e820_type new_type);
extern void e820__print_table(char *who);
extern int e820__update_table(struct e820_table *table);