Bugfixing initrd and ld-acess
[tpg/acess2.git] / Kernel / vfs / main.c
index 4722aae..736b578 100644 (file)
@@ -2,7 +2,7 @@
  * Acess 2
  * Virtual File System
  */
-#include <common.h>
+#include <acess.h>
 #include <fs_sysfs.h>
 #include "vfs.h"
 #include "vfs_int.h"
@@ -20,6 +20,9 @@ tVFS_Driver   *VFS_GetFSByName(char *Name);
  int   VFS_AddDriver(tVFS_Driver *Info);
 void   VFS_UpdateDriverFile();
 
+// === EXPORTS ===
+EXPORT(VFS_AddDriver);
+
 // === GLOBALS ===
 tVFS_Node      NULLNode = {0};
 tSpinlock      siDriverListLock = 0;
@@ -86,6 +89,7 @@ void VFS_GetMemPath(char *Dest, void *Base, Uint Length)
        itoa( &Dest[1], (Uint)Base, 16, BITS/4, '0' );
        Dest[BITS/4+1] = ':';
        itoa( &Dest[BITS/4+2], Length, 16, BITS/4, '0' );
+       Dest[BITS/2+2] = '\0';
        
        Log("VFS_GetMemPath: Dest = \"%s\"", Dest);
 }

UCC git Repository :: git.ucc.asn.au