Skip to content

Commit

Permalink
Merge branch 'patch-1' of https://github.com/Saarett/xv6-public
Browse files Browse the repository at this point in the history
  • Loading branch information
kaashoek committed Aug 7, 2017
2 parents 61f26e3 + 03b3086 commit 0249311
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion vm.c
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,10 @@ setupkvm(void)
panic("PHYSTOP too high");
for(k = kmap; k < &kmap[NELEM(kmap)]; k++)
if(mappages(pgdir, k->virt, k->phys_end - k->phys_start,
(uint)k->phys_start, k->perm) < 0)
(uint)k->phys_start, k->perm) < 0) {
freevm(pgdir);
return 0;
}
return pgdir;
}

Expand Down

0 comments on commit 0249311

Please sign in to comment.