And place it into .text.cold.
Requested-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
void lstar_enter(void);
void cstar_enter(void);
#else
-static inline void lstar_enter(void)
+static void __cold star_enter(void)
{
- panic("%s called\n", __func__);
-}
-
-static inline void cstar_enter(void)
-{
- panic("%s called\n", __func__);
+ panic("lstar/cstar\n");
}
+#define lstar_enter star_enter
+#define cstar_enter star_enter
#endif /* CONFIG_PV */
void subarch_percpu_traps_init(void)
*/
#define __init __text_section(".init.text")
#define __exit __text_section(".exit.text")
+#define __cold __text_section(".text.cold")
#define __initdata __section(".init.data")
#define __initconst __section(".init.rodata")
#define __initconstrel __section(".init.rodata.rel")