reset_stack_and_jump_nolp(init_done);
}
+/*
+ * x86 early command line parsing in xen/arch/x86/boot/cmdline.c
+ * has options that are only used during the very initial boot process,
+ * so they can be ignored now.
+ */
+ignore_param("no-real-mode");
+ignore_param("edd");
+ignore_param("edid");
+
/*
* Some scripts add "placeholder" to work around a grub error where it ate the
* first parameter.
__attribute__((__aligned__(1))) char
#define __kparam __param(__initsetup)
+/* Only for use with .init data, to avoid creating livepatch problems. */
+#define __TEMP_NAME(base, line) base ## _ ## line
+#define _TEMP_NAME(base, line) __TEMP_NAME(base, line)
+#define TEMP_NAME(base) _TEMP_NAME(base, __LINE__)
+
#define custom_param(_name, _var) \
__setup_str __setup_str_##_var[] = _name; \
__kparam __setup_##_var = \
.len = sizeof(_var), \
.par.var = &_var }
#define ignore_param(_name) \
- __setup_str setup_str_ign[] = _name; \
- __kparam setup_ign = \
- { .name = setup_str_ign, \
+ __setup_str TEMP_NAME(__setup_str_ign)[] = _name; \
+ __kparam TEMP_NAME(__setup_ign) = \
+ { .name = TEMP_NAME(__setup_str_ign), \
.type = OPT_IGNORE }
#ifdef CONFIG_HYPFS