X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=AcessNative%2Facesskernel_src%2Fmain.c;h=3f72413056deb243d6c4ac027692d11f20921b66;hb=4cbfb47ebf71128b57cf25a131550b3f66a295a3;hp=7de6bf959bf863dbb1e3d2a8cea4eeaebcda0aa0;hpb=02cbaac1233be9c5228973a787431fa5e0aa178e;p=tpg%2Facess2.git diff --git a/AcessNative/acesskernel_src/main.c b/AcessNative/acesskernel_src/main.c index 7de6bf95..3f724130 100644 --- a/AcessNative/acesskernel_src/main.c +++ b/AcessNative/acesskernel_src/main.c @@ -6,6 +6,7 @@ */ #include #include +#include // === IMPORTS === extern int UI_Initialise(int Width, int Height); @@ -13,20 +14,29 @@ extern int VFS_Init(void); extern int Video_Install(char **Arguments); extern int NativeKeyboard_Install(char **Arguments); extern int VT_Install(char **Arguments); +extern int VFS_Mount(const char *Device, const char *MountPoint, const char *Filesystem, const char *Options); +extern int SyscallServer(void); + +// === GLOBALS === +const char *gsAcessDir = "../Usermode/Output/i386"; // === CODE === int main(int argc, char *argv[]) { // Parse command line settings - + + // - Ignore SIGUSR1 (used to wake threads) + signal(SIGUSR1, SIG_IGN); + // Start UI subsystem - UI_Initialise(640, 480); + UI_Initialise(800, 480); // Initialise VFS VFS_Init(); // - Start IO Drivers Video_Install(NULL); NativeKeyboard_Install(NULL); + NativeFS_Install(NULL); // - Start VTerm { char *args[] = { @@ -37,11 +47,13 @@ int main(int argc, char *argv[]) VT_Install(args); } + VFS_Mount(gsAcessDir, "/Acess", "nativefs", ""); + + Debug_SetKTerminal("/Devices/VTerm/8"); + // Start syscall server - for( ;; ) - { - UI_Redraw(); - } + // - Blocks + SyscallServer(); return 0; }