summaryrefslogtreecommitdiffstats
path: root/kexec/add_segment.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--kexec/add_segment.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/kexec/add_segment.c b/kexec/add_segment.c
new file mode 100644
index 0000000..029c376
--- /dev/null
+++ b/kexec/add_segment.c
@@ -0,0 +1,8 @@
+#include "kexec.h"
+
+void add_segment(struct kexec_info *info,
+ const void *buf, size_t bufsz,
+ unsigned long base, size_t memsz)
+{
+ return add_segment_phys_virt(info, buf, bufsz, base, memsz, 0);
+}