search for: image_address

Displaying 2 results from an estimated 2 matches for "image_address".

2012 Nov 07
0
[PATCH v2] x86/ACPI: invalidate BGRT if necessary
...#endif +static int __init acpi_invalidate_bgrt(struct acpi_table_header *table) +{ + struct acpi_table_bgrt *bgrt_tbl = + container_of(table, struct acpi_table_bgrt, header); + + if (table->length < sizeof(*bgrt_tbl)) + return -1; + + if (bgrt_tbl->version == 1 && bgrt_tbl->image_address + && !page_is_ram_type(PFN_DOWN(bgrt_tbl->image_address), + RAM_TYPE_CONVENTIONAL)) + return 0; + + printk(KERN_INFO PREFIX "BGRT: invalidating v%d image at %#"PRIx64"\n", + bgrt_tbl->version, bgrt_tbl->image_address); + bgrt_tbl->image_addres...
2012 Nov 05
2
[PATCH] x86/ACPI: invalidate BGRT
...truct acpi_table_bgrt, header); + + if (table->length < sizeof(*bgrt_tbl)) + return -1; + + if (!(bgrt_tbl->status & 1)) + return 0; + + printk(KERN_INFO PREFIX "BGRT: invalidating v%d image at %#"PRIx64" for (%u,%u)\n", + bgrt_tbl->version, bgrt_tbl->image_address, + bgrt_tbl->image_offset_x, bgrt_tbl->image_offset_y); + bgrt_tbl->status &= ~1; + + return 0; +} + #ifdef CONFIG_ACPI_SLEEP #define acpi_fadt_copy_address(dst, src, len) do { \ if (fadt->header.revision >= FADT2_REVISION_ID) \ @@ -653,5 +672,7 @@ int __init acpi_...