From f4b3edf5ab211c6dfbb2befb1a4c1b6bd26e4222 Mon Sep 17 00:00:00 2001 From: Robert Morris Date: Wed, 10 Aug 2022 06:00:40 -0400 Subject: [PATCH] comment nits --- kernel/exec.c | 1 + kernel/fs.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/kernel/exec.c b/kernel/exec.c index d62d29d..09b4bdc 100644 --- a/kernel/exec.c +++ b/kernel/exec.c @@ -65,6 +65,7 @@ exec(char *path, char **argv) uint64 oldsz = p->sz; // Allocate two pages at the next page boundary. + // Make the first inaccessible as a stack guard. // Use the second as the user stack. sz = PGROUNDUP(sz); uint64 sz1; diff --git a/kernel/fs.c b/kernel/fs.c index 53a3a0f..40c9bd4 100644 --- a/kernel/fs.c +++ b/kernel/fs.c @@ -109,8 +109,8 @@ bfree(int dev, uint b) // its size, the number of links referring to it, and the // list of blocks holding the file's content. // -// The inodes are laid out sequentially on disk at block -// sb.inodestart. Each inode has a number, indicating its +// The inodes are laid out sequentially on disk at +// sb.startinode. Each inode has a number, indicating its // position on the disk. // // The kernel keeps a table of in-use inodes in memory