├── fs ├── newmotd ├── motd ├── testshell.sh ├── script ├── index.html ├── lorem ├── fs.h ├── test.c ├── Makefrag ├── ide.c └── testshell.key ├── conf ├── lab.mk └── env.mk ├── net ├── lwip │ ├── core │ │ └── ipv6 │ │ │ ├── README │ │ │ └── ip6_addr.c │ ├── jos │ │ ├── jif │ │ │ └── jif.h │ │ ├── arch │ │ │ ├── perf.h │ │ │ ├── perror.h │ │ │ ├── setjmp.h │ │ │ ├── i386 │ │ │ │ └── setjmp.h │ │ │ ├── sys_arch.h │ │ │ ├── thread.h │ │ │ ├── cc.h │ │ │ ├── longjmp.S │ │ │ └── threadq.h │ │ └── lwipopts.h │ ├── FILES │ ├── netif │ │ ├── FILES │ │ ├── ppp │ │ │ ├── vjbsdhdr.h │ │ │ ├── pppdebug.h │ │ │ ├── md5.h │ │ │ └── chpms.h │ │ └── loopif.c │ ├── include │ │ ├── lwip │ │ │ ├── init.h │ │ │ ├── def.h │ │ │ └── sio.h │ │ ├── netif │ │ │ ├── slipif.h │ │ │ └── loopif.h │ │ ├── ipv4 │ │ │ └── lwip │ │ │ │ ├── inet_chksum.h │ │ │ │ └── ip_frag.h │ │ └── ipv6 │ │ │ └── lwip │ │ │ └── inet.h │ ├── Makefrag │ └── api │ │ └── err.c ├── output.c ├── ns.h ├── timer.c ├── input.c ├── Makefrag └── testoutput.c ├── lib ├── exit.c ├── pageref.c ├── wait.c ├── panic.c ├── libmain.c ├── readline.c ├── entry.S ├── Makefrag ├── printf.c ├── pgfault.c ├── fprintf.c ├── args.c ├── ipc.c ├── console.c └── sockets.c ├── inc ├── malloc.h ├── stdarg.h ├── syscall.h ├── assert.h ├── partition.h ├── stdio.h ├── string.h ├── error.h ├── elf.h ├── fd.h ├── stab.h ├── types.h ├── ns.h ├── env.h ├── args.h └── trap.h ├── user ├── breakpoint.c ├── faultwrite.c ├── hello.c ├── softint.c ├── faultwritekernel.c ├── faultread.c ├── divzero.c ├── faultreadkernel.c ├── buggyhello.c ├── spawnhello.c ├── spawninit.c ├── badsegment.c ├── faultnostack.c ├── faultevilhandler.c ├── buggyhello2.c ├── evilhello.c ├── echo.c ├── yield.c ├── faultdie.c ├── faultbadhandler.c ├── testmalloc.c ├── idle.c ├── fairness.c ├── testkbd.c ├── initsh.c ├── pingpong.c ├── faultalloc.c ├── Makefrag ├── forktree.c ├── faultallocbad.c ├── icode.c ├── cat.c ├── testtime.c ├── testbss.c ├── spin.c ├── lsfd.c ├── pingpongs.c ├── num.c ├── stresssched.c ├── testptelibrary.c ├── writemotd.c ├── testpteshare.c ├── testfdsharing.c ├── sendpage.c ├── primes.c ├── testpipe.c ├── init.c ├── user.ld ├── echotest.c ├── ls.c ├── primespipe.c ├── testshell.c ├── testpiperace.c ├── testpiperace2.c ├── dumbfork.c └── echosrv.c ├── .gitignore ├── .dir-locals.el ├── kern ├── time.h ├── syscall.h ├── sched.h ├── kclock.c ├── time.c ├── kdebug.h ├── trap.h ├── pci.h ├── console.h ├── picirq.h ├── monitor.h ├── env.h ├── kclock.h ├── cpu.h ├── spinlock.h ├── kernel.ld ├── sched.c ├── picirq.c ├── pmap.h ├── mpentry.S ├── entry.S └── printf.c ├── boot ├── sign.pl ├── Makefrag └── boot.S ├── grade-lab2 ├── .gdbinit.tmpl ├── CODING ├── grade-lab1 ├── handin-prep ├── README.md └── mergedep.pl /fs/newmotd: -------------------------------------------------------------------------------- 1 | This is the NEW message of the day! 2 | 3 | -------------------------------------------------------------------------------- /conf/lab.mk: -------------------------------------------------------------------------------- 1 | LAB=6 2 | PACKAGEDATE=Mon Nov 17 18:30:59 EST 2014 3 | -------------------------------------------------------------------------------- /net/lwip/core/ipv6/README: -------------------------------------------------------------------------------- 1 | IPv6 support in lwIP is very experimental. 2 | -------------------------------------------------------------------------------- /fs/motd: -------------------------------------------------------------------------------- 1 | This is /motd, the message of the day. 2 | 3 | Welcome to the JOS kernel, now with a file system! 4 | 5 | -------------------------------------------------------------------------------- /lib/exit.c: -------------------------------------------------------------------------------- 1 | 2 | #include 3 | 4 | void 5 | exit(void) 6 | { 7 | close_all(); 8 | sys_env_destroy(0); 9 | } 10 | 11 | -------------------------------------------------------------------------------- /net/lwip/jos/jif/jif.h: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | void jif_input(struct netif *netif, void *va); 4 | err_t jif_init(struct netif *netif); 5 | -------------------------------------------------------------------------------- /inc/malloc.h: -------------------------------------------------------------------------------- 1 | #ifndef JOS_INC_MALLOC_H 2 | #define JOS_INC_MALLOC_H 1 3 | 4 | void *malloc(size_t size); 5 | void free(void *addr); 6 | 7 | #endif 8 | -------------------------------------------------------------------------------- /net/lwip/jos/arch/perf.h: -------------------------------------------------------------------------------- 1 | #ifndef LWIP_ARCH_PERF_H 2 | #define LWIP_ARCH_PERF_H 3 | 4 | #define PERF_START 5 | #define PERF_STOP(x) 6 | 7 | #endif 8 | -------------------------------------------------------------------------------- /fs/testshell.sh: -------------------------------------------------------------------------------- 1 | echo hello world | cat 2 | cat lorem 3 | cat lorem |num 4 | cat lorem |num |num |num |num |num 5 | lsfd -1 6 | cat script 7 | sh