x86/ACPI: don't overwrite FADT
authorJan Beulich <jbeulich@suse.com>
Thu, 21 Jan 2021 15:19:34 +0000 (16:19 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 21 Jan 2021 15:19:34 +0000 (16:19 +0100)
commitcad784fb8fcfd8f32ca4a787a95abbabc0059736
treecd2af058a6979dab1428fca66324a56f3b4a3f39
parente44321d94f984890d8dd7488a0fbab9933fb29fc
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>
master commit: 654c917d94d24587bb6b4a8d862baf04b25cbe33
master date: 2021-01-11 14:55:52 +0100
xen/arch/x86/acpi/boot.c