summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2013-03-22 05:09:48 (GMT)
committerH. Peter Anvin <hpa@zytor.com>2013-03-22 05:09:48 (GMT)
commit4d8763a20a0205602234a151c934a750fca51392 (patch)
treee2a79fa92e4af4cea978e1ff63e79bbaae979b2c
parent81d9cd91c09e12ad29f66d579d0b9bd765ad260c (diff)
downloadvirtio9p-4d8763a20a0205602234a151c934a750fca51392.zip
virtio9p-4d8763a20a0205602234a151c934a750fca51392.tar.gz
virtio9p-4d8763a20a0205602234a151c934a750fca51392.tar.bz2
virtio9p-4d8763a20a0205602234a151c934a750fca51392.tar.xz
readdir: add some debugging statements
For future work
-rw-r--r--readdir.asm16
1 files changed, 16 insertions, 0 deletions
diff --git a/readdir.asm b/readdir.asm
index b3a5794..4bd4118 100644
--- a/readdir.asm
+++ b/readdir.asm
@@ -43,8 +43,24 @@ GPROC(fxn_findfirst)
movb %fs:SDF_ATTRIB(%si),%al /* File search attributes */
/* Save drive letter and search attributes */
movw %ax,%fs:(%bx)
+#ifdef DEBUG
+ debugmsg "findfirst attrib = "
+ pushw %ax
+ call debug_printhex2
+#endif
testb $0x08,%al
jnz label
+#ifdef DEBUG
+ debugmsg " fn1 = "
+ pushw %ax
+ pushw %fs
+ leaw %fs:(SDN_FN1-SDN_SEARCHDATA)(%bx),%ax
+ pushw %ax
+ call debug_puts_far
+ popw %ax
+ call debug_crlf
+#endif
+
movl $0x08030002,%eax /* File not found */
clc
retw