From 67618a69ae353e90edd91168a5a9f8dd8658381e Mon Sep 17 00:00:00 2001 From: bouyer Date: Thu, 19 Oct 2000 07:20:16 +0000 Subject: Move restore_scntl3 before the lun switch, to ease freeing of unused lun slots. --- sys/dev/microcode/siop/siop.ss | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'sys/dev/microcode') diff --git a/sys/dev/microcode/siop/siop.ss b/sys/dev/microcode/siop/siop.ss index abf21060d21..bbc089b2135 100644 --- a/sys/dev/microcode/siop/siop.ss +++ b/sys/dev/microcode/siop/siop.ss @@ -1,4 +1,4 @@ -; $NetBSD: siop.ss,v 1.10 2000/10/18 17:01:13 bouyer Exp $ +; $NetBSD: siop.ss,v 1.11 2000/10/19 07:20:16 bouyer Exp $ ; ; Copyright (c) 2000 Manuel Bouyer. @@ -85,6 +85,7 @@ EXTERN abs_targ0; EXTERN abs_msgin; ; lun switch symbols +ENTRY lun_switch_entry; ENTRY resel_lun0; ENTRY restore_scntl3; EXTERN abs_lun0; @@ -341,6 +342,11 @@ PROC endslot_script: ; hack: we first to a call to the target-specific code, so that a return ; in the main switch will jump to the lun switch. PROC lun_switch: +restore_scntl3: + MOVE 0xff TO SCNTL3; + MOVE 0xff TO SXFER; + JUMP abs_lunsw_return; +lun_switch_entry: CALL REL(restore_scntl3); MOVE SCRATCHA1 TO SFBR; resel_lun0: @@ -353,10 +359,6 @@ resel_lun0: JUMP abs_lun0, IF 0x06; JUMP abs_lun0, IF 0x07; INT int_resellun; -restore_scntl3: - MOVE 0xff TO SCNTL3; - MOVE 0xff TO SXFER; - JUMP abs_lunsw_return; ;; script used to load the DSA after a reselect. -- cgit