1 // Called from entry.S to get us going.
2 // entry.S already took care of defining envs, pages, vpd, and vpt.
6 extern void umain(int argc
, char **argv
);
8 volatile struct Env
*env
;
9 char *binaryname
= "(PROGRAM NAME UNKNOWN)";
12 libmain(int argc
, char **argv
)
14 // set env to point at our env structure in envs[].
15 // LAB 3: Your code here.
18 envid
= sys_getenvid();
19 env
= &envs
[ENVX(envid
)];
21 // save the name of the program so that panic() can use it
25 // call user main routine