From 743a4860cce117baec6ef3c40deb0f945529c34f Mon Sep 17 00:00:00 2001 From: Michal Idziorek Date: Fri, 5 Dec 2014 00:16:42 +0100 Subject: struggling with paging exceptions! --- userspace/init.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'userspace/init.c') diff --git a/userspace/init.c b/userspace/init.c index 6dc6215..d152581 100644 --- a/userspace/init.c +++ b/userspace/init.c @@ -12,7 +12,9 @@ int main(int argc, char **argv) if(pid==0) { - execve("/bin/foolshell",0,0); // replace process with our foolshell :) + char *argv[]={"/bin/foolshell",0}; + char *env[]={"PS1=$","PWD=/home/miguel","PATH=/bin",0}; + execve("/bin/foolshell",argv,env); // replace process with our foolshell :) puts("FATAL ERROR: Something terrible happened. Unable to Execute SHELL!"); while(1);// hang -- cgit v1.2.3