bug fixes
This commit is contained in:
parent
86788787ab
commit
b2ebd79911
@ -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…
x
Reference in New Issue
Block a user