From 4faf79cc8b08c7ef9711b1ed8b300762790fd130 Mon Sep 17 00:00:00 2001 From: Helge Deller Date: Sun, 22 Oct 2023 17:07:55 +0200 Subject: parisc: Fix return value of PDC_CACHE_RET_SPID space-id bits If SR-hasing is disabled, we need to return zero. Signed-off-by: Helge Deller --- src/parisc/parisc.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/parisc/parisc.c b/src/parisc/parisc.c index ab7ff62..6ec168f 100644 --- a/src/parisc/parisc.c +++ b/src/parisc/parisc.c @@ -1429,10 +1429,9 @@ static int pdc_cache(unsigned int *arg) memcpy(result, machine_cache_info, sizeof(*machine_cache_info)); return PDC_OK; - case PDC_CACHE_RET_SPID: /* returns space-ID bits */ + case PDC_CACHE_RET_SPID: /* returns space-ID bits when sr-hasing is enabled */ memset(result, 0, 32 * sizeof(unsigned long)); - /* for 32- and 64-bit CPUs, we allow only 32 useable bits for SIDs */ - result[0] = 32; + result[0] = 0; return PDC_OK; } dprintf(0, "\n\nSeaBIOS: Unimplemented PDC_CACHE function %d %x %x %x %x\n", ARG1, ARG2, ARG3, ARG4, ARG5); -- cgit v1.1