comment nits

This commit is contained in:
Robert Morris 2022-08-09 14:17:46 -04:00
parent af9abaca05
commit 27a669ef25
4 changed files with 23 additions and 19 deletions

View file

@ -295,7 +295,7 @@ r_sp()
return x;
}
// read and write tp, the thread pointer, which holds
// read and write tp, the thread pointer, which xv6 uses to hold
// this core's hartid (core number), the index into cpus[].
static inline uint64
r_tp()
@ -342,7 +342,7 @@ typedef uint64 *pagetable_t; // 512 PTEs
#define PTE_R (1L << 1)
#define PTE_W (1L << 2)
#define PTE_X (1L << 3)
#define PTE_U (1L << 4) // 1 -> user can access
#define PTE_U (1L << 4) // user can access
// shift a physical address to the right place for a PTE.
#define PA2PTE(pa) ((((uint64)pa) >> 12) << 10)