]> xenbits.xensource.com Git - xen.git/commit
x86/ACPI: don't overwrite FADT
authorJan Beulich <jbeulich@suse.com>
Mon, 11 Jan 2021 13:55:52 +0000 (14:55 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 11 Jan 2021 13:55:52 +0000 (14:55 +0100)
commit654c917d94d24587bb6b4a8d862baf04b25cbe33
tree2ba68bff85e9db8d778b5810dfc45827fe2cac0e
parentb4b0a8609c42d9e01dd51fd59ab2859f7df2a961
x86/ACPI: don't overwrite FADT

When marking fields invalid for our own purposes, we should do so in our
local copy (so we will notice later on), not in the firmware provided
one (which another entity may want to look at again, e.g. after kexec).
Also mark the function parameter const to notice such issues right away.

Instead use the pointer at the firmware copy for specifying an adjacent
printk()'s arguments. If nothing else this at least reduces the number
of relocations the assembler hasto emit and the linker has to process.

Fixes: 62d1a69a4e9f ("ACPI: support v5 (reduced HW) sleep interface")
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/acpi/boot.c