comment nits
This commit is contained in:
parent
af9abaca05
commit
27a669ef25
4 changed files with 23 additions and 19 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue