NOBJ := logging.o misc.o threads_int.o
-LOBJ := threads.o time.o
+LOBJ := threads.o time.o dummy_iocache.o
# mutex.o rwlock.o semaphore.o
KOBJ += vfs/main.o vfs/open.o vfs/acls.o vfs/io.o vfs/dir.o
KOBJ += vfs/fs/root.o vfs/fs/devfs.o
KOBJ += drv/proc.o
KOBJ += mutex.o rwlock.o semaphore.o
+KOBJ += utf16.o
NOBJ := $(NOBJ:%.o=obj/%.o)
LOBJ := $(LOBJ:%.o=obj/%.o)
--- /dev/null
+/*
+ * Acess2 Kernel
+ * - By thePowersGang (John Hodge)
+ *
+ * dummy_iocache.c
+ * - Dummied-out Block IO Caching
+ */
+#define DEBUG 0
+#include <acess.h>
+#include <iocache.h>
+
+struct sIOCache
+{
+ tIOCache_WriteCallback Write;
+ void *ID;
+};
+
+// === CODE ===
+tIOCache *IOCache_Create( tIOCache_WriteCallback Write, void *ID, int SectorSize, int CacheSize )
+{
+ tIOCache *ret = malloc(sizeof(tIOCache));
+ ret->Write = Write;
+ ret->ID = ID;
+ return ret;
+}
+int IOCache_Read( tIOCache *Cache, Uint64 Sector, void *Buffer )
+{
+ return 0;
+}
+int IOCache_Add( tIOCache *Cache, Uint64 Sector, const void *Buffer )
+{
+ return 1;
+}
+int IOCache_Write( tIOCache *Cache, Uint64 Sector, const void *Buffer )
+{
+ #ifndef DISABLE_WRITE
+ Cache->Write(Cache->ID, Sector, Buffer);
+ #endif
+ return 1;
+}
+void IOCache_Flush( tIOCache *Cache )
+{
+}
+void IOCache_Destroy( tIOCache *Cache )
+{
+ free(Cache);
+}
+
void Log_Debug(const char *Ident, const char *Message, ...)
PUTERR("37", "d")
+void Panic(const char *Message, ...) {
+ const char *Ident = "";
+ PUTERR("35", "k")
+ exit(-1);
+}
void Warning(const char *Message, ...) {
const char *Ident = "";
PUTERR("33", "W")