xv6

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 9a4670a138f7ab25062195be2f4d42403dddc077
parent 93a1e4cb07e329dc9550643f7fe8430da547497a
Author: Austin Clements <amdragon@mit.edu>
Date:   Thu,  2 Sep 2010 16:39:55 -0400

Comment inituvm and loaduvm

Diffstat:
Mvm.c | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/vm.c b/vm.c @@ -193,6 +193,8 @@ uva2ka(pde_t *pgdir, char *uva) return (char *)pa; } +// Load the initcode into address 0 of pgdir. +// sz must be less than a page. void inituvm(pde_t *pgdir, char *init, uint sz) { @@ -204,6 +206,8 @@ inituvm(pde_t *pgdir, char *init, uint sz) memmove(mem, init, sz); } +// Load a program segment into pgdir. addr must be page-aligned +// and the pages from addr to addr+sz must already be mapped. int loaduvm(pde_t *pgdir, char *addr, struct inode *ip, uint offset, uint sz) {