command: Remove the cmd_tbl_t typedef
[oweals/u-boot.git] / arch / x86 / lib / zimage.c
index 6a6258a5057a3b16700aac4a3c93c25e720fd715..64d14e8911845fb9675f5f182b297a9e823ff5de 100644 (file)
  */
 
 #include <common.h>
+#include <command.h>
 #include <env.h>
+#include <irq_func.h>
 #include <malloc.h>
-#include <asm/acpi_table.h>
+#include <acpi/acpi_table.h>
 #include <asm/io.h>
 #include <asm/ptrace.h>
 #include <asm/zimage.h>
@@ -288,6 +290,10 @@ int setup_zimage(struct boot_params *setup_base, char *cmd_line, int auto_boot,
                hdr->hardware_subarch = X86_SUBARCH_INTEL_MID;
 #endif
 
+#ifdef CONFIG_GENERATE_ACPI_TABLE
+       setup_base->acpi_rsdp_addr = acpi_get_rsdp_addr();
+#endif
+
        setup_device_tree(hdr, (const void *)env_get_hex("fdtaddr", 0));
        setup_video(&setup_base->screen_info);
 
@@ -305,7 +311,7 @@ void __setup_pcat_compatibility(void)
 {
 }
 
-int do_zboot(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
+int do_zboot(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        struct boot_params *base_ptr;
        void *bzImage_addr = NULL;