diff options
-rw-r--r-- | src/parisc/head.S | 4 | ||||
-rw-r--r-- | src/parisc/parisc.c | 4 | ||||
-rw-r--r-- | src/parisc/pdc.h | 1 |
3 files changed, 6 insertions, 3 deletions
diff --git a/src/parisc/head.S b/src/parisc/head.S index 7e22572..4679f91 100644 --- a/src/parisc/head.S +++ b/src/parisc/head.S @@ -83,11 +83,15 @@ reset_entry: .stringz "https://github.com/hdeller/seabios-hppa" .stringz BUILD_VERSION + .align 0x80 +ENTRY(powersw_button) /* instead of 0xf0140000 on B160L */ + .word 0 /******************************************************* Firmware startup code *******************************************************/ + .align 0x80 ENTRY(startup) /* Make sure space registers are set to zero */ mtsp %r0,%sr0 diff --git a/src/parisc/parisc.c b/src/parisc/parisc.c index be9546f..e9d5e0c 100644 --- a/src/parisc/parisc.c +++ b/src/parisc/parisc.c @@ -141,11 +141,11 @@ static unsigned long GoldenMemory = MIN_RAM_SIZE; static unsigned int chassis_code = 0; /* - * For QEMU we emulate the power switch button flag in pad0[2] in PAGE0. + * Emulate the power switch button flag in head section of firmware. * Bit 31 (the lowest bit) is the status of the power switch. * This bit is "1" if the button is NOT pressed. */ -#define powersw_button PAGE0->pad0[2] +extern int powersw_button; /* in head.S */ void __VISIBLE __noreturn hlt(void) { diff --git a/src/parisc/pdc.h b/src/parisc/pdc.h index 23af5cc..50e88cf 100644 --- a/src/parisc/pdc.h +++ b/src/parisc/pdc.h @@ -402,7 +402,6 @@ struct zeropage { /* [0x040] reserved processor dependent */ int pad0[112]; /* in QEMU pad0[0] holds "SeaBIOS\0" */ - /* and pad0[2] holds soft power button */ /* [0x200] reserved */ int pad1[84]; |