diff -r 04f249f00303 drivers/acpi/acpica/hwsleep.c --- a/drivers/acpi/acpica/hwsleep.c Tue Aug 18 12:06:57 2009 -0700 +++ b/drivers/acpi/acpica/hwsleep.c Wed Aug 19 15:23:44 2009 -0700 @@ -45,7 +45,12 @@ #include #include "accommon.h" #include "actables.h" + +#ifdef CONFIG_X86 #include +#else +#define tboot_sleep(sleep_state, pm1a_control, pm1b_control) do { } while (0) +#endif #define _COMPONENT ACPI_HARDWARE ACPI_MODULE_NAME("hwsleep") diff -r 04f249f00303 drivers/pci/dmar.c --- a/drivers/pci/dmar.c Tue Aug 18 12:06:57 2009 -0700 +++ b/drivers/pci/dmar.c Wed Aug 19 15:23:44 2009 -0700 @@ -33,7 +33,12 @@ #include #include #include + +#ifdef CONFIG_X86 #include +#else +#define tboot_get_dmar_table(x) (x) +#endif #undef PREFIX #define PREFIX "DMAR:" diff -r 04f249f00303 drivers/pci/intel-iommu.c --- a/drivers/pci/intel-iommu.c Tue Aug 18 12:06:57 2009 -0700 +++ b/drivers/pci/intel-iommu.c Wed Aug 19 15:23:44 2009 -0700 @@ -38,9 +38,14 @@ #include #include #include -#include #include #include "pci.h" + +#ifdef CONFIG_X86 +#include +#else +#define tboot_force_iommu() 0 +#endif #define ROOT_SIZE VTD_PAGE_SIZE #define CONTEXT_SIZE VTD_PAGE_SIZE diff -r 04f249f00303 init/main.c --- a/init/main.c Tue Aug 18 12:06:57 2009 -0700 +++ b/init/main.c Wed Aug 19 15:23:44 2009 -0700 @@ -73,13 +73,19 @@ #include #include #include -#include #include #include #ifdef CONFIG_X86_LOCAL_APIC #include #endif + +#ifdef CONFIG_X86 +#include +#else +#define tboot_create_trampoline() do { } while (0) +#endif + static int kernel_init(void *); diff -r 04f249f00303 kernel/cpu.c --- a/kernel/cpu.c Tue Aug 18 12:06:57 2009 -0700 +++ b/kernel/cpu.c Wed Aug 19 15:23:44 2009 -0700 @@ -14,7 +14,12 @@ #include #include #include + +#ifdef CONFIG_X86 #include +#else +#define tboot_wait_for_aps(x) 0 +#endif #ifdef CONFIG_SMP /* Serializes the updates to cpu_online_mask, cpu_present_mask */