Remove unused argument to setupkvm (thanks to Peter Froehlich)

This commit is contained in:
Frans Kaashoek 2012-08-22 20:19:37 -04:00
parent 70c555574a
commit 4ce832ddd2
4 changed files with 4 additions and 4 deletions

2
defs.h
View file

@ -164,7 +164,7 @@ void uartputc(int);
void seginit(void); void seginit(void);
void kvmalloc(void); void kvmalloc(void);
void vmenable(void); void vmenable(void);
pde_t* setupkvm(); pde_t* setupkvm(void);
char* uva2ka(pde_t*, char*); char* uva2ka(pde_t*, char*);
int allocuvm(pde_t*, uint, uint); int allocuvm(pde_t*, uint, uint);
int deallocuvm(pde_t*, uint, uint); int deallocuvm(pde_t*, uint, uint);

2
exec.c
View file

@ -29,7 +29,7 @@ exec(char *path, char **argv)
if(elf.magic != ELF_MAGIC) if(elf.magic != ELF_MAGIC)
goto bad; goto bad;
if((pgdir = setupkvm(kalloc)) == 0) if((pgdir = setupkvm()) == 0)
goto bad; goto bad;
// Load program into memory. // Load program into memory.

2
proc.c
View file

@ -83,7 +83,7 @@ userinit(void)
p = allocproc(); p = allocproc();
initproc = p; initproc = p;
if((p->pgdir = setupkvm(kalloc)) == 0) if((p->pgdir = setupkvm()) == 0)
panic("userinit: out of memory?"); panic("userinit: out of memory?");
inituvm(p->pgdir, _binary_initcode_start, (int)_binary_initcode_size); inituvm(p->pgdir, _binary_initcode_start, (int)_binary_initcode_size);
p->sz = PGSIZE; p->sz = PGSIZE;

2
vm.c
View file

@ -126,7 +126,7 @@ static struct kmap {
// Set up kernel part of a page table. // Set up kernel part of a page table.
pde_t* pde_t*
setupkvm() setupkvm(void)
{ {
pde_t *pgdir; pde_t *pgdir;
struct kmap *k; struct kmap *k;