提交 a526a130 编写于 作者: Z Zhao Yihan 提交者: guzitao

sw64: fix a compile error with CONFIG_EFI=n

Sunway inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I56QAM

--------------------------------
Signed-off-by: NZhao Yihan <zhaoyihan@wxiat.com>
Reviewed-by: NHe Sheng <hesheng@wxiat.com>
Signed-off-by: NGu Zitao <guzitao@wxiat.com>
上级 c6ea2f56
...@@ -6,6 +6,10 @@ ...@@ -6,6 +6,10 @@
#include <asm/early_ioremap.h> #include <asm/early_ioremap.h>
#ifdef CONFIG_EFI #ifdef CONFIG_EFI
extern void efi_init(void); extern void efi_init(void);
extern unsigned long entSuspend;
#define SLEEP_ENTRY_GUID EFI_GUID(0x59cb76bb, 0x9c3a, 0x4c8f, 0xbd, 0x5c, 0xc0, 0x0f, 0x20, 0x61, 0x18, 0x4b)
#else #else
#define efi_init() #define efi_init()
#define efi_idmap_init() #define efi_idmap_init()
...@@ -35,8 +39,4 @@ extern void efi_init(void); ...@@ -35,8 +39,4 @@ extern void efi_init(void);
#define efi_call_early(f, ...) sys_table_arg->boottime->f(__VA_ARGS__) #define efi_call_early(f, ...) sys_table_arg->boottime->f(__VA_ARGS__)
extern unsigned long entSuspend;
#define SLEEP_ENTRY_GUID EFI_GUID(0x59cb76bb, 0x9c3a, 0x4c8f, 0xbd, 0x5c, 0xc0, 0x0f, 0x20, 0x61, 0x18, 0x4b)
#endif /* _ASM_SW64_EFI_H */ #endif /* _ASM_SW64_EFI_H */
...@@ -1459,5 +1459,7 @@ trap_init(void) ...@@ -1459,5 +1459,7 @@ trap_init(void)
wrent(entIF, 3); wrent(entIF, 3);
wrent(entUna, 4); wrent(entUna, 4);
wrent(entSys, 5); wrent(entSys, 5);
#ifdef CONFIG_EFI
wrent((void *)entSuspend, 6); wrent((void *)entSuspend, 6);
#endif
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册