3 * - Acess kernel emulation on another OS using SDL and UDP
14 void LogF(const char *Fmt, ...)
22 void Log(const char *Fmt, ...)
32 void Warning(const char *Fmt, ...)
42 void Panic(const char *Format, ...)
46 va_start(args, Format);
47 vprintf(Format, args);
53 void Debug_SetKTerminal(const char *Path)
55 // Ignored, kernel debug goes to stdout instead of a virtual terminal
59 void KernelPanic_SetMode(void)
63 void KernelPanic_PutChar(char ch)
65 fprintf(stderr, "%c", ch);
67 void Debug_PutCharDebug(char ch)
71 void Debug_PutStringDebug(const char *String)
76 void *Heap_Allocate(const char *File, int Line, int ByteCount)
78 return malloc(ByteCount);
81 void *Heap_AllocateZero(const char *File, int Line, int ByteCount)
83 return calloc(ByteCount, 1);
86 void *Heap_Reallocate(const char *File, int Line, void *Ptr, int Bytes)
88 return realloc(Ptr, Bytes);
91 void Heap_Deallocate(void *Ptr)
96 tPAddr MM_GetPhysAddr(tVAddr VAddr)
98 return VAddr; // HACK!
101 Uint MM_GetFlags(tVAddr VAddr)
106 int Modules_InitialiseBuiltin(const char *Name)
115 gettimeofday(&tv, &tz);
116 return tv.tv_sec * 1000 + tv.tv_usec/1000;