aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHelge Deller <deller@gmx.de>2023-09-23 09:44:44 +0200
committerHelge Deller <deller@gmx.de>2023-09-23 09:44:44 +0200
commitb831a7d6ce06149d74a1ed22711071918868324f (patch)
tree06a8cae939f1a25d1bc33299b7031e61a494a8f8
parentcae86066eba88ef040d23b6aebc67e094167ec5a (diff)
downloadseabios-hppa-b831a7d6ce06149d74a1ed22711071918868324f.zip
seabios-hppa-b831a7d6ce06149d74a1ed22711071918868324f.tar.gz
seabios-hppa-b831a7d6ce06149d74a1ed22711071918868324f.tar.bz2
set 64-bit OS-capable flag
-rw-r--r--src/parisc/parisc.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/parisc/parisc.c b/src/parisc/parisc.c
index 21662ed..2500656 100644
--- a/src/parisc/parisc.c
+++ b/src/parisc/parisc.c
@@ -1035,7 +1035,10 @@ static int pdc_model(unsigned int *arg)
case PDC_MODEL_CAPABILITIES:
result[0] = current_machine->pdc_caps;
result[0] |= PDC_MODEL_OS32; /* we do support 32-bit */
- result[0] &= ~PDC_MODEL_OS64; /* but not 64-bit (yet) */
+ if (cpu_bit_width == 64) /* and maybe 64-bit */
+ result[0] |= PDC_MODEL_OS64;
+ else
+ result[0] &= ~PDC_MODEL_OS64;
return PDC_OK;
case PDC_MODEL_GET_INSTALL_KERNEL:
// No need to provide a special install kernel during installation of HP-UX