AcessNative - Added PTY init to AcessKernel
authorJohn Hodge <[email protected]>
Sun, 14 Jul 2013 15:18:06 +0000 (23:18 +0800)
committerJohn Hodge <[email protected]>
Sun, 14 Jul 2013 15:18:06 +0000 (23:18 +0800)
AcessNative/acesskernel_src/main.c
AcessNative/ld-acess_src/syscalls.c

index 8e17099..be03fe6 100644 (file)
@@ -21,6 +21,7 @@
 extern int     UI_Initialise(int Width, int Height);
 extern void    UI_MainLoop(void);
 extern int     VFS_Init(void);
+extern int     PTY_Install(char **Arguments);
 extern int     Video_Install(char **Arguments);
 extern int     NativeKeyboard_Install(char **Arguments);
 extern int     NativeFS_Install(char **Arguments);
@@ -98,6 +99,7 @@ int main(int argc, char *argv[])
        NativeFS_Install(NULL);
        Mouse_Install(NULL);
        IPCPipe_Install(NULL);
+       PTY_Install(NULL);
        // - Start VTerm
        {
                char    *args[] = {
@@ -111,7 +113,7 @@ int main(int argc, char *argv[])
        VFS_MkDir("/Acess");    
        VFS_Mount(gsAcessDir, "/Acess", "nativefs", "");
 
-       Debug_SetKTerminal("/Devices/VTerm/8");
+       Debug_SetKTerminal("/Devices/pts/vt7c");
        
        // Start syscall server
        SyscallServer();
index 88db8c4..48305e3 100644 (file)
@@ -22,7 +22,7 @@
 
 #define assert(cnd) do{ \
        if( !(cnd) ) { \
-               fprintf(stderr, "%s:%i - assert failed - " #cnd, __FILE__, __LINE__);\
+               fprintf(stderr, "%s:%i - assert failed - " #cnd"\n", __FILE__, __LINE__);\
                exit(-1); \
        } \
 }while(0)

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