aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHelge Deller <deller@gmx.de>2024-02-06 21:53:19 +0100
committerHelge Deller <deller@gmx.de>2024-02-06 22:47:50 +0100
commit0088e68e83fb2eba668c359a8bcd904676c559f1 (patch)
treeeb3e7da2711147ae64b89efd1bb90f5328cc02c8
parent5e1a44b6164d633899a02256ea184a6f99c567e5 (diff)
downloadseabios-hppa-0088e68e83fb2eba668c359a8bcd904676c559f1.zip
seabios-hppa-0088e68e83fb2eba668c359a8bcd904676c559f1.tar.gz
seabios-hppa-0088e68e83fb2eba668c359a8bcd904676c559f1.tar.bz2
parisc: Fix crash in PDC_TOD_WRITE in compat mode
Fix crash when setting the PDC clock and running a 64-bit PDC in 32-bit compat mode: When writing the clock, no return values are returned to the caller as there is no return buffer in ARG2. So this function needs to be marked with NO_COMPAT_RETURN_VALUE(ARG2). Signed-off-by: Helge Deller <deller@gmx.de>
-rw-r--r--src/parisc/parisc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/parisc/parisc.c b/src/parisc/parisc.c
index d7a05c0..ad19c62 100644
--- a/src/parisc/parisc.c
+++ b/src/parisc/parisc.c
@@ -1756,6 +1756,7 @@ static int pdc_tod(unsigned long *arg)
return PDC_OK;
case PDC_TOD_WRITE:
*rtc_ptr = ARG2;
+ NO_COMPAT_RETURN_VALUE(ARG2);
return PDC_OK;
case 2: /* PDC_TOD_CALIBRATE_TIMERS */
/* double-precision floating-point with frequency of Interval Timer in megahertz: */