bug fixes
This commit is contained in:
parent
75a8a6cc64
commit
8675bc2b01
1 changed files with 2 additions and 3 deletions
|
@ -27,11 +27,10 @@ unsigned len;
|
||||||
register char *p;
|
register char *p;
|
||||||
|
|
||||||
p = (char *) ALIGN((vir_bytes) top + sizeof(char *) + len, CLICK_SIZE)
|
p = (char *) ALIGN((vir_bytes) top + sizeof(char *) + len, CLICK_SIZE)
|
||||||
+ BUGFIX
|
+ BUGFIX;
|
||||||
- sizeof(char *);
|
|
||||||
if (p < top || brk(p - BUGFIX) < 0)
|
if (p < top || brk(p - BUGFIX) < 0)
|
||||||
return(0);
|
return(0);
|
||||||
top = p;
|
top = p - (BUGFIX + sizeof(char *));
|
||||||
for (p = bottom; NEXT(p) != 0; p = (char *) (* (vir_bytes *) p & ~BUSY))
|
for (p = bottom; NEXT(p) != 0; p = (char *) (* (vir_bytes *) p & ~BUSY))
|
||||||
;
|
;
|
||||||
NEXT(p) = top;
|
NEXT(p) = top;
|
||||||
|
|
Loading…
Reference in a new issue