fix mapkstack

This commit is contained in:
Frans Kaashoek 2019-07-22 20:58:15 -04:00
parent 62091abae9
commit 6c78af4a57
3 changed files with 5 additions and 5 deletions

View file

@ -29,8 +29,8 @@ procinit(void)
for(p = proc; p < &proc[NPROC]; p++) {
initlock(&p->lock, "proc");
// Allocate a page for the kernel stack.
char *kstack = (char *) KSTACK((int) (p - proc));
if((p->kstack = map_kstack(kstack)) == 0) {
uint64 kstack = KSTACK((int) (p - proc));
if((p->kstack = mapkstack(kstack)) == 0) {
panic("procinit");
}
}