Skip to content

Commit e274d2a

Browse files
hdellerrth7680
authored andcommitted
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>
1 parent 8066102 commit e274d2a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

hw/hppa/machine.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@
3636

3737
#define MIN_SEABIOS_HPPA_VERSION 10 /* require at least this fw version */
3838

39-
#define HPA_POWER_BUTTON (FIRMWARE_END - 0x10)
39+
/* Power button address at &PAGE0->pad[4] */
40+
#define HPA_POWER_BUTTON (0x40 + 4 * sizeof(uint32_t))
4041

4142
#define enable_lasi_lan() 0
4243

0 commit comments

Comments
 (0)