From 57e40a020411924dc89fba9fdd22a048ff4513f0 Mon Sep 17 00:00:00 2001 From: Robert Morris Date: Fri, 20 Sep 2019 06:02:47 -0400 Subject: [PATCH] nits --- Makefile | 2 +- kernel/syscall.c | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 331e833..a398c5a 100644 --- a/Makefile +++ b/Makefile @@ -164,7 +164,7 @@ qemu: $K/kernel fs.img sed "s/:1234/:$(GDBPORT)/" < $^ > $@ qemu-gdb: $K/kernel .gdbinit fs.img - @echo "*** Now run 'gdb'." 1>&2 + @echo "*** Now run 'gdb' in another window." 1>&2 $(QEMU) $(QEMUOPTS) -S $(QEMUGDB) # CUT HERE diff --git a/kernel/syscall.c b/kernel/syscall.c index 97974d6..2817e44 100644 --- a/kernel/syscall.c +++ b/kernel/syscall.c @@ -20,7 +20,6 @@ fetchaddr(uint64 addr, uint64 *ip) } // Fetch the nul-terminated string at addr from the current process. -// Doesn't actually copy the string - just sets *pp to point at it. // Returns length of string, not including nul, or -1 for error. int fetchstr(uint64 addr, char *buf, int max)