diff --git a/README.md b/README.md index 4cf9b83..a699545 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,11 @@ and CPU resets to the standard error. This setting will also cause QEMU to quit after encountering a [triple fault][] (normally it will reboot). `make run-PROGRAM` runs `p-PROGRAM.cc` as the first non-init process. The -default is `alloc`. +default is `allocator`. If you choose an alternate first process, note a +couple things: + +* An initial process like p-testkalloc.cc calls panic(), but without a console this gives a [page fault](https://github.com/CS161/chickadee/issues/14). +* build/chickadee.gdb is hard-coded to load symbols for p-allocator.cc, so this file must be [modified](https://github.com/CS161/chickadee/issues/13) if you want to debug an alternate process. `make HALT=1 run-PROGRAM` should make QEMU exit once all processes are done. diff --git a/boot.cc b/boot.cc index 5909750..ade3d96 100644 --- a/boot.cc +++ b/boot.cc @@ -14,7 +14,7 @@ // the boot device (hard drive) into memory at address 0x7C00, and jumps to // that address. // -// The boot loader is contained in bootstart.S and boot.c. Control starts +// The boot loader is contained in bootstart.S and boot.cc. Control starts // in bootstart.S, which initializes the CPU and sets up a stack, then // transfers here. This code reads in the kernel image and calls the // kernel. diff --git a/lib.hh b/lib.hh index 08f3adb..899196f 100644 --- a/lib.hh +++ b/lib.hh @@ -249,7 +249,6 @@ struct bitset_view { // System call numbers (passed in `%rax` at `syscall` time) -// Used in pset 1: #define SYSCALL_GETPID 1 #define SYSCALL_YIELD 2 #define SYSCALL_PAUSE 3 @@ -257,7 +256,6 @@ struct bitset_view { #define SYSCALL_PANIC 5 #define SYSCALL_PAGE_ALLOC 6 #define SYSCALL_FORK 7 -// Used in later psets: #define SYSCALL_EXIT 8 #define SYSCALL_READ 9 #define SYSCALL_WRITE 10