diff options
author | Helge Deller <deller@gmx.de> | 2024-01-03 11:59:27 +0100 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2024-01-04 18:49:40 +0100 |
commit | ca2a5bf30744a00a4bff39edee9d08d01350c036 (patch) | |
tree | 17e182de1a72cc2c47c0b5ec236e0dd1a3a9e24e /src/parisc/parisc.c | |
parent | a1e2237d122132ccf2299c8f3dcdeeb56af7427d (diff) | |
download | seabios-hppa-ca2a5bf30744a00a4bff39edee9d08d01350c036.zip seabios-hppa-ca2a5bf30744a00a4bff39edee9d08d01350c036.tar.gz seabios-hppa-ca2a5bf30744a00a4bff39edee9d08d01350c036.tar.bz2 |
parisc: Fix FPU detection on NetBSD
Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'src/parisc/parisc.c')
-rw-r--r-- | src/parisc/parisc.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/parisc/parisc.c b/src/parisc/parisc.c index df85f1c..afe248a 100644 --- a/src/parisc/parisc.c +++ b/src/parisc/parisc.c @@ -1625,12 +1625,12 @@ static int pdc_coproc(unsigned int *arg) switch (option) { case PDC_COPROC_CFG: memset(result, 0, 32 * sizeof(unsigned long)); - mask = 1UL << 7; /* bit for FPU available/functional */ + mask = 3UL << 6; /* bit for FPU available/functional */ mtctl(mask, 10); /* initialize cr10 */ - result[0] = mask; - result[1] = mask; - result[17] = 1; /* Revision */ - result[18] = current_machine->pdc_cpuid >> 5; /* CPU Model */ + result[0] = mask; /* ccr_enable */ + result[1] = mask; /* ccr_present */ + result[17] = 1; /* FPU revision */ + result[18] = current_machine->pdc_cpuid >> 5; /* FPU model */ return PDC_OK; } return PDC_BAD_OPTION; |