3 * - Acess kernel emulation on another OS using SDL and UDP
13 extern int UI_Initialise(int Width, int Height);
14 extern void UI_MainLoop(void);
15 extern int VFS_Init(void);
16 extern int Video_Install(char **Arguments);
17 extern int NativeKeyboard_Install(char **Arguments);
18 extern int NativeFS_Install(char **Arguments);
19 extern void Debug_SetKTerminal(char *Path);
20 extern int VT_Install(char **Arguments);
21 extern int VFS_Mount(const char *Device, const char *MountPoint, const char *Filesystem, const char *Options);
22 extern int SyscallServer(void);
23 extern const char gsKernelVersion[];
24 extern const char gsGitHash[];
25 extern int giBuildNumber;
28 const char *gsAcessDir = "../Usermode/Output/x86";
31 int main(int argc, char *argv[])
33 // Parse command line settings
34 printf("Acess2 Native v%s\n", gsKernelVersion);
35 printf(" Build %i, Git Hash %s\n", giBuildNumber, gsGitHash);
38 UI_Initialise(800, 480);
40 // - Ignore SIGUSR1 (used to wake threads)
41 signal(SIGUSR1, SIG_IGN);
47 NativeKeyboard_Install(NULL);
48 NativeFS_Install(NULL);
53 "Input=NativeKeyboard",
60 VFS_Mount(gsAcessDir, "/Acess", "nativefs", "");
62 Debug_SetKTerminal("/Devices/VTerm/8");
64 // Start syscall server
73 void AcessNative_Exit(void)
75 // TODO: Close client applications too
79 uint64_t DivMod64U(uint64_t Num, uint64_t Den, uint64_t *Rem)
81 if(Rem) *Rem = Num % Den;
85 int Module_EnsureLoaded(const char *Name)