From 0088e68e83fb2eba668c359a8bcd904676c559f1 Mon Sep 17 00:00:00 2001 From: Helge Deller Date: Tue, 6 Feb 2024 21:53:19 +0100 Subject: 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 --- src/parisc/parisc.c | 1 + 1 file changed, 1 insertion(+) 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: */ -- cgit v1.1