summaryrefslogtreecommitdiff
path: root/arch/loongarch/kernel/image-vars.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/loongarch/kernel/image-vars.h')
-rw-r--r--arch/loongarch/kernel/image-vars.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/arch/loongarch/kernel/image-vars.h b/arch/loongarch/kernel/image-vars.h
new file mode 100644
index 000000000000..41ddcf56d21c
--- /dev/null
+++ b/arch/loongarch/kernel/image-vars.h
@@ -0,0 +1,20 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+/*
+ * Copyright (C) 2020-2022 Loongson Technology Corporation Limited
+ */
+#ifndef __LOONGARCH_KERNEL_IMAGE_VARS_H
+#define __LOONGARCH_KERNEL_IMAGE_VARS_H
+
+#ifdef CONFIG_EFI_STUB
+
+__efistub_strcmp = strcmp;
+__efistub_kernel_entry = kernel_entry;
+__efistub_kernel_asize = kernel_asize;
+__efistub_kernel_fsize = kernel_fsize;
+#if defined(CONFIG_EFI_EARLYCON) || defined(CONFIG_SYSFB)
+__efistub_screen_info = screen_info;
+#endif
+
+#endif
+
+#endif /* __LOONGARCH_KERNEL_IMAGE_VARS_H */