2 * Acess2 System Init Task
7 #define NULL ((void*)0)
9 #define DEFAULT_TERMINAL "/Devices/VTerm/0"
10 #define DEFAULT_SHELL "/Acess/SBin/login"
14 * \fn int main(int argc, char *argv[])
17 int main(int argc, char *argv[])
21 char termpath[sizeof(DEFAULT_TERMINAL)] = DEFAULT_TERMINAL;
22 char *child_argv[2] = {DEFAULT_SHELL, 0};
24 for( i = 0; i < NUM_TERMS; i++ )
26 tid = clone(CLONE_VM, 0);
29 termpath[sizeof(DEFAULT_TERMINAL)-2] = '0' + i;
31 //__asm__ __volatile__ ("int $0xAC" :: "a" (256), "b" ("%s"), "c" (termpath));
33 open(termpath, OPENFLAG_READ); // Stdin
34 open(termpath, OPENFLAG_WRITE); // Stdout
35 open(termpath, OPENFLAG_WRITE); // Stderr
36 execve(DEFAULT_SHELL, child_argv, NULL);
41 // TODO: Implement message watching