diff options
Diffstat (limited to 'userspace/init.c')
| -rw-r--r-- | userspace/init.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/userspace/init.c b/userspace/init.c index 0a3b870..d130bc8 100644 --- a/userspace/init.c +++ b/userspace/init.c @@ -1,11 +1,22 @@ #include <stdio.h> #include <time.h> +#include "put_pixel.h" int main(int argc, char **argv) { + + // int x=10/0; // provoke divide by zero + + uint8_t *mem=0xf6000000; + *mem='a'; + while(1); + char *argv1[]={"/bin/fsh",0}; char *env1[]={"HOME=/home/miguel","PS1=\033[34m$\033[37m","PWD=/home/miguel","PATH=/bin","TERM=fool-term",0}; + + + // loop forever and spawn shells if the top-shell exits while(1) { |
