Merge pull request #4 from 4ge32/riscv

Fix minor typos
This commit is contained in:
Frans Kaashoek 2020-08-10 13:05:28 -04:00 committed by GitHub
commit 6b593b9eae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -65,9 +65,9 @@ kvminithart()
// A 64-bit virtual address is split into five fields: // A 64-bit virtual address is split into five fields:
// 39..63 -- must be zero. // 39..63 -- must be zero.
// 30..38 -- 9 bits of level-2 index. // 30..38 -- 9 bits of level-2 index.
// 21..39 -- 9 bits of level-1 index. // 21..29 -- 9 bits of level-1 index.
// 12..20 -- 9 bits of level-0 index. // 12..20 -- 9 bits of level-0 index.
// 0..12 -- 12 bits of byte offset within the page. // 0..11 -- 12 bits of byte offset within the page.
pte_t * pte_t *
walk(pagetable_t pagetable, uint64 va, int alloc) walk(pagetable_t pagetable, uint64 va, int alloc)
{ {