summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2013-03-18 15:20:35 (GMT)
committerH. Peter Anvin <hpa@zytor.com>2013-03-18 15:20:35 (GMT)
commit97a6cb7b0e6a6332f860d6b962e3b5538bb18d9e (patch)
tree11d171cbd66e2b40fea9752b5d4947f65a521f33
parent8357ab567e407af064c0d690fee1bd82c2fe411d (diff)
downloadvirtio9p-97a6cb7b0e6a6332f860d6b962e3b5538bb18d9e.zip
virtio9p-97a6cb7b0e6a6332f860d6b962e3b5538bb18d9e.tar.gz
virtio9p-97a6cb7b0e6a6332f860d6b962e3b5538bb18d9e.tar.bz2
virtio9p-97a6cb7b0e6a6332f860d6b962e3b5538bb18d9e.tar.xz
Restore the qualify function for testing
There are some odd behaviors afoot, so being able to test with and without the qualify function might be a good idea.
-rw-r--r--acc.asm10
-rw-r--r--fxn.asm12
-rw-r--r--int2f.asm4
3 files changed, 26 insertions, 0 deletions
diff --git a/acc.asm b/acc.asm
index 8f77d42..1908fbc 100644
--- a/acc.asm
+++ b/acc.asm
@@ -130,3 +130,13 @@ GPROC(acc_cds_esdi)
movw F_ES,%fs
jmp acc_cds_common
END(acc_cds_esdi)
+
+/* ------------------------------------------------------------------------- *
+ * acc_qualify
+ * ------------------------------------------------------------------------- */
+
+GPROC(acc_qualify)
+ movw F_SI,%si
+ movw F_DS,%fs
+ jmp acc_drive_common
+END(acc_qualify)
diff --git a/fxn.asm b/fxn.asm
index 4c6b919..9f2f94a 100644
--- a/fxn.asm
+++ b/fxn.asm
@@ -204,3 +204,15 @@ GPROC(fxn_writefile)
stc
retw
END(fxn_writefile)
+
+/* ------------------------------------------------------------------------- *
+ * fxn_qualify
+ *
+ * Qualify a pathname. Just return failure and let DOS do the default.
+ * ------------------------------------------------------------------------- */
+
+GPROC(fxn_qualify)
+ movl $0x06060001,%eax
+ clc
+ retw
+END(fxn_qualify)
diff --git a/int2f.asm b/int2f.asm
index 33e0163..063d075 100644
--- a/int2f.asm
+++ b/int2f.asm
@@ -193,7 +193,11 @@ dispatch_table:
.word acc_never, fxn_unknown /* 0x20 */
.word acc_file, fxn_skfmend
.word acc_never, fxn_unknown
+#if 0
+ .word acc_qualify, fxn_qualify
+#else
.word acc_never, fxn_unknown
+#endif
.word acc_never, fxn_unknown /* 0x24 */
.word acc_never, fxn_unknown