aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Schnelle <svens@stackframe.org>2024-03-26 07:28:39 +0100
committerHelge Deller <deller@gmx.de>2024-05-15 15:50:06 +0200
commitdd4b770d47ff7888eb438526928bd9b84e6a9922 (patch)
tree99de90f3a63ca83b68ead6f26600c40f49ca963f
parente25c7c98c513feae3c6d60d008e352293d79a2f9 (diff)
downloadseabios-hppa-dd4b770d47ff7888eb438526928bd9b84e6a9922.zip
seabios-hppa-dd4b770d47ff7888eb438526928bd9b84e6a9922.tar.gz
seabios-hppa-dd4b770d47ff7888eb438526928bd9b84e6a9922.tar.bz2
parisc: Support ENTRY_IO_BOOTOUT
The hpux bios/firmware flash tool wants to write the ISL AUTO file to hard disc. This prevents starting the flash tool again, and instead boots into hpux at next reboot. Signed-off-by: Sven Schnelle <svens@stackframe.org> Signed-off-by: Helge Deller <deller@gmx.de>
-rw-r--r--src/parisc/parisc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/parisc/parisc.c b/src/parisc/parisc.c
index 2d1f833..8ede027 100644
--- a/src/parisc/parisc.c
+++ b/src/parisc/parisc.c
@@ -1169,9 +1169,10 @@ int __VISIBLE parisc_iodc_ENTRY_IO(unsigned int *arg)
switch (option) {
case ENTRY_IO_BOOTIN: /* boot medium IN */
case ENTRY_IO_BBLOCK_IN: /* boot block medium IN */
+ case ENTRY_IO_BOOTOUT:
disk_op.drive_fl = boot_drive;
disk_op.buf_fl = (void*)ARG6;
- disk_op.command = CMD_READ;
+ disk_op.command = option == ENTRY_IO_BOOTOUT ? CMD_WRITE : CMD_READ;
// Make sure we know how many bytes we can read at once!
// NOTE: LSI SCSI can not read more than 8191 blocks, esp only 64k