summaryrefslogtreecommitdiffstats
path: root/start.asm
diff options
context:
space:
mode:
Diffstat (limited to 'start.asm')
-rw-r--r--start.asm12
1 files changed, 11 insertions, 1 deletions
diff --git a/start.asm b/start.asm
index 9a47556..24fa13f 100644
--- a/start.asm
+++ b/start.asm
@@ -662,6 +662,16 @@ send_attach:
/* ------------------------------------------------------------------------- *
* Actually install the filesystem driver
* ------------------------------------------------------------------------- */
+#ifdef DEBUG
+ debugmsg "Our CDS = "
+ pushw our_cds+2
+ call debug_printhex4
+ debugmsg ":"
+ pushw our_cds
+ call debug_printhex4
+ call debug_crlf
+#endif
+
/* NOTE: we stop maintaining %es == %ds here */
movw $0x352f,%ax /* Get interrupt vector 0x2f */
@@ -680,7 +690,7 @@ send_attach:
movb drive_letter,%al /* Now %eax = "X:\" + NUL for the proper X */
movl %eax,%es:(%bx) /* Set current directory */
- movw $CDS_MAGIC,%es:CDS_DPBPTR(%bx) /* Available field, set to magic */
+ movw $CDS_MAGIC,%es:CDS_USERVAL(%bx) /* Available field, set to magic */
movw $2,%es:CDS_ROOTOFFSET(%bx) /* Path starts after X: */
/* ------------------------------------------------------------------------- *