[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH 06 of 15] hvmloader: make ACPI initialisation hook more general
# HG changeset patch # User Ian Campbell <ian.campbell@xxxxxxxxxx> # Date 1306916909 -3600 # Node ID 4d9116ca460ed18d23f2c04c28ea2b5a67586830 # Parent ecc58aeac569ad6defd47cc068eb93df143a0b5c hvmloader: make ACPI initialisation hook more general. Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx> diff -r ecc58aeac569 -r 4d9116ca460e tools/firmware/hvmloader/config.h --- a/tools/firmware/hvmloader/config.h Wed Jun 01 09:28:22 2011 +0100 +++ b/tools/firmware/hvmloader/config.h Wed Jun 01 09:28:29 2011 +0100 @@ -23,16 +23,13 @@ struct bios_config { int load_roms; unsigned int optionrom_start, optionrom_end; - /* ACPI tables */ - unsigned int acpi_start; - uint32_t (*bios_high_setup)(void); void (*bios_info_setup)(uint32_t); void (*vm86_setup)(void); void (*e820_setup)(void); - void (*acpi_build_tables)(unsigned int physical); + void (*acpi_build_tables)(void); void (*create_mp_tables)(void); }; diff -r ecc58aeac569 -r 4d9116ca460e tools/firmware/hvmloader/hvmloader.c --- a/tools/firmware/hvmloader/hvmloader.c Wed Jun 01 09:28:22 2011 +0100 +++ b/tools/firmware/hvmloader/hvmloader.c Wed Jun 01 09:28:29 2011 +0100 @@ -472,7 +472,7 @@ int main(void) if ( bios->acpi_build_tables ) { printf("Loading ACPI ...\n"); - bios->acpi_build_tables(bios->acpi_start); + bios->acpi_build_tables(); } hypercall_hvm_op(HVMOP_set_param, &p); } diff -r ecc58aeac569 -r 4d9116ca460e tools/firmware/hvmloader/rombios.c --- a/tools/firmware/hvmloader/rombios.c Wed Jun 01 09:28:22 2011 +0100 +++ b/tools/firmware/hvmloader/rombios.c Wed Jun 01 09:28:29 2011 +0100 @@ -115,6 +115,11 @@ static void reset_bios_checksum(void) *((uint8_t *)(ROMBIOS_BEGIN + ROMBIOS_MAXOFFSET)) = -checksum; } +static void rombios_acpi_build_tables(void) +{ + acpi_build_tables(ACPI_PHYSICAL_ADDRESS); +} + static void rombios_create_mp_tables(void) { /* Find the 'safe' place in ROMBIOS for the MP tables. */ @@ -149,15 +154,13 @@ struct bios_config rombios_config = { .optionrom_start = OPTIONROM_PHYSICAL_ADDRESS, .optionrom_end = OPTIONROM_PHYSICAL_END, - .acpi_start = ACPI_PHYSICAL_ADDRESS, - .bios_high_setup = rombios_highbios_setup, .bios_info_setup = rombios_setup_bios_info, .vm86_setup = rombios_init_vm86_tss, .e820_setup = rombios_setup_e820, - .acpi_build_tables = acpi_build_tables, + .acpi_build_tables = rombios_acpi_build_tables, .create_mp_tables = rombios_create_mp_tables, }; diff -r ecc58aeac569 -r 4d9116ca460e tools/firmware/hvmloader/seabios.c --- a/tools/firmware/hvmloader/seabios.c Wed Jun 01 09:28:22 2011 +0100 +++ b/tools/firmware/hvmloader/seabios.c Wed Jun 01 09:28:29 2011 +0100 @@ -46,8 +46,6 @@ struct bios_config seabios_config = { .optionrom_start = 0, .optionrom_end = 0, - .acpi_start = 0, - .bios_info_setup = NULL, .vm86_setup = NULL, _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |