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>
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 @@
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