Remove unused argument to setupkvm (thanks to Peter Froehlich)
This commit is contained in:
parent
70c555574a
commit
4ce832ddd2
4 changed files with 4 additions and 4 deletions
2
defs.h
2
defs.h
|
@ -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);
|
||||
|
|
2
exec.c
2
exec.c
|
@ -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.
|
||||
|
|
2
proc.c
2
proc.c
|
@ -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;
|
||||
|
|
2
vm.c
2
vm.c
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue