* Acess2 System Init Task
*/
#include <acess/sys.h>
+#include <stdlib.h>
+#include <stdio.h>
+//#include "common.h"
// === CONSTANTS ===
-#define NULL ((void*)0)
-#define NUM_TERMS 1
+#define NUM_TERMS 4
#define DEFAULT_TERMINAL "/Devices/VTerm/0"
#define DEFAULT_SHELL "/Acess/SBin/login"
+#define ARRAY_SIZE(x) ((sizeof(x))/(sizeof((x)[0])))
+
+// === PROTOTYPES ===
+
// === CODE ===
/**
* \fn int main(int argc, char *argv[])
char termpath[sizeof(DEFAULT_TERMINAL)] = DEFAULT_TERMINAL;
char *child_argv[2] = {DEFAULT_SHELL, 0};
+ // - Parse init script
+
+ // - Start virtual terminals
for( i = 0; i < NUM_TERMS; i++ )
{
tid = clone(CLONE_VM, 0);
{
termpath[sizeof(DEFAULT_TERMINAL)-2] = '0' + i;
- //__asm__ __volatile__ ("int $0xAC" :: "a" (256), "b" ("%s"), "c" (termpath));
-
open(termpath, OPENFLAG_READ); // Stdin
open(termpath, OPENFLAG_WRITE); // Stdout
open(termpath, OPENFLAG_WRITE); // Stderr
return 42;
}
+