HVM guests don't have one provided by the domain builder.
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
# recursively expanded use the := operator instead of the = operator.
# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
-PREDEFINED = __attribute__(x)= \
+PREDEFINED = __aligned(x)= \
+ __attribute__(x)= \
__printf(x,y)= \
__noreturn \
#include <xtf/asm_macros.h>
+#include <arch/x86/page.h>
+
#include <xen/elfnote.h>
/* Guest name and version */
mov %esi, start_info
#endif
+ /* Move onto own stack. */
+ mov $boot_stack + PAGE_SIZE, %esp
+
call xtf_main
/* panic() if xtf_main manages to return. */
#include <arch/x86/config.h>
#include <arch/x86/mm.h>
+uint8_t boot_stack[PAGE_SIZE] __aligned(PAGE_SIZE);
+
#ifdef CONFIG_ENV_pv
/* Filled in by head_pv.S */
start_info_t *start_info = NULL;
#ifndef XTF_COMPILER_H
#define XTF_COMPILER_H
+#define __aligned(x) __attribute__((aligned(x)))
+
#define __noreturn __attribute__((noreturn))
#define unreachable() __builtin_unreachable()