diff options
author | Helge Deller <deller@gmx.de> | 2023-11-11 20:13:53 +0100 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2023-11-13 09:21:32 -0800 |
commit | e274d2a777de168082b36a31b6b5ea2b9185e960 (patch) | |
tree | 1f1967d829904cdd95307d390ab3da6ef48b2661 /hw | |
parent | 8066102df12fecfac7b076bd6aa208e63f8f0b04 (diff) | |
download | qemu-e274d2a777de168082b36a31b6b5ea2b9185e960.zip qemu-e274d2a777de168082b36a31b6b5ea2b9185e960.tar.gz qemu-e274d2a777de168082b36a31b6b5ea2b9185e960.tar.bz2 |
hw/hppa: Move software power button address to page zero
Something appears to be off between the 64-bit CPU, the 32-bit PDC
(SeaBIOS-hppa firmware), and the 64-bit kernel in addressing the
power button address in high-mapped firmware memory.
Use a 32-bit value at PAGE0->pad0[4] instead.
Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/hppa/machine.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/hppa/machine.c b/hw/hppa/machine.c index a3222d3..f7d9ce9 100644 --- a/hw/hppa/machine.c +++ b/hw/hppa/machine.c @@ -36,7 +36,8 @@ #define MIN_SEABIOS_HPPA_VERSION 10 /* require at least this fw version */ -#define HPA_POWER_BUTTON (FIRMWARE_END - 0x10) +/* Power button address at &PAGE0->pad[4] */ +#define HPA_POWER_BUTTON (0x40 + 4 * sizeof(uint32_t)) #define enable_lasi_lan() 0 |