diff options
Diffstat (limited to 'include/init.h')
-rw-r--r-- | include/init.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/init.h b/include/init.h index f6105de6660..c5498476f8c 100644 --- a/include/init.h +++ b/include/init.h @@ -16,6 +16,13 @@ struct global_data; #ifndef __ASSEMBLY__ /* put C only stuff in this section */ +/* Avoid using CONFIG_EFI_STUB directly as we may boot from other loaders */ +#ifdef CONFIG_EFI_STUB +#define ll_boot_init() false +#else +#define ll_boot_init() true +#endif + /* * Function Prototypes */ |