simplify ide queuing

nits in comments
This commit is contained in:
rtm 2007-08-24 19:32:36 +00:00
parent 2bc72bdd29
commit 902b13f5d6
8 changed files with 79 additions and 89 deletions

View file

@ -95,7 +95,7 @@ kalloc(int n)
char *p;
struct run *r, **rr;
if(n % PAGE)
if(n % PAGE || n <= 0)
panic("kalloc");
acquire(&kalloc_lock);