Skip to content

Commit

Permalink
Remove unused argument to setupkvm (thanks to Peter Froehlich)
Browse files Browse the repository at this point in the history
  • Loading branch information
kaashoek committed Aug 23, 2012
1 parent 70c5555 commit 4ce832d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ void uartputc(int);
void seginit(void);
void kvmalloc(void);
void vmenable(void);
pde_t* setupkvm();
pde_t* setupkvm(void);
char* uva2ka(pde_t*, char*);
int allocuvm(pde_t*, uint, uint);
int deallocuvm(pde_t*, uint, uint);
Expand Down
2 changes: 1 addition & 1 deletion exec.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ exec(char *path, char **argv)
if(elf.magic != ELF_MAGIC)
goto bad;

if((pgdir = setupkvm(kalloc)) == 0)
if((pgdir = setupkvm()) == 0)
goto bad;

// Load program into memory.
Expand Down
2 changes: 1 addition & 1 deletion proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ userinit(void)

p = allocproc();
initproc = p;
if((p->pgdir = setupkvm(kalloc)) == 0)
if((p->pgdir = setupkvm()) == 0)
panic("userinit: out of memory?");
inituvm(p->pgdir, _binary_initcode_start, (int)_binary_initcode_size);
p->sz = PGSIZE;
Expand Down
2 changes: 1 addition & 1 deletion vm.c
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ static struct kmap {

// Set up kernel part of a page table.
pde_t*
setupkvm()
setupkvm(void)
{
pde_t *pgdir;
struct kmap *k;
Expand Down

0 comments on commit 4ce832d

Please sign in to comment.