From 64418973513a497dad667eacaf1cb06272056830 Mon Sep 17 00:00:00 2001 From: Sven Schnelle Date: Tue, 26 Mar 2024 07:28:39 +0100 Subject: 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 Signed-off-by: Helge Deller --- src/parisc/parisc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v1.1