search for: acpi_subtable_h

Displaying 3 results from an estimated 3 matches for "acpi_subtable_h".

2011 Dec 12
0
[PATCH 1/4] ACPI: eliminate duplicate MADT parsing and unused SBF definitions
...nbr_cpus * sizeof(*lsapic); madt->header.checksum = -acpi_tb_checksum((u8*)madt, madt->header.length); return; --- a/xen/arch/ia64/xen/dom_fw_dom0.c +++ b/xen/arch/ia64/xen/dom_fw_dom0.c @@ -53,11 +53,11 @@ static u32 lsapic_nbr; static int __init acpi_update_lsapic(struct acpi_subtable_header * header, const unsigned long end) { - struct acpi_table_lsapic *lsapic; + struct acpi_madt_local_sapic *lsapic = + container_of(header, struct acpi_madt_local_sapic, header); int enable; - lsapic = (struct acpi_table_lsapic *)header; - if (!lsapic) + if (!header) return -EINVAL;...
2013 Oct 30
1
[PATCH] x86/ACPI/x2APIC: guard against out of range ACPI or APIC IDs
...ranges possibly extending beyond what our internal arrays can handle, and hence we need to guard ourselves against corrupting memory here. Signed-off-by: Jan Beulich <jbeulich@suse.com> --- a/xen/arch/x86/acpi/boot.c +++ b/xen/arch/x86/acpi/boot.c @@ -97,7 +97,20 @@ acpi_parse_x2apic(struct acpi_subtable_h acpi_table_print_madt_entry(header); - /* Record local apic id only when enabled */ + /* Record local apic id only when enabled and fitting. */ + if (processor->local_apic_id >= MAX_APICS || + processor->uid >= MAX_MADT_ENTRIES) { + printk("%sAPIC ID %#x and/or ACPI ID %...
2011 Mar 09
0
[PATCH 04/11] x86: cleanup mpparse.c
...elated to it). Of what remains, move whatever possible into .init.*, and some data items into .data.read_mostly. Signed-off-by: Jan Beulich <jbeulich@novell.com> --- 2011-03-09.orig/xen/arch/x86/acpi/boot.c +++ 2011-03-09/xen/arch/x86/acpi/boot.c @@ -177,7 +177,8 @@ acpi_parse_x2apic(struct acpi_subtable_h * when we use CPU hotplug. */ mp_register_lapic(processor->id, /* X2APIC ID */ - processor->flags.enabled); /* Enabled? */ + processor->flags.enabled, /* Enabled? */ + 0); return 0; } @@ -206,7 +207,8 @@ acpi_parse_lapic(struct acpi_subtable_he * when we use CPU...