public
/
ack.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1da83e1
)
improved sbrk
author
ceriel
<none@none>
Thu, 14 Apr 1988 10:45:42 +0000
(10:45 +0000)
committer
ceriel
<none@none>
Thu, 14 Apr 1988 10:45:42 +0000
(10:45 +0000)
lang/cem/libcc/mon/sbrk.e
patch
|
blob
|
history
diff --git
a/lang/cem/libcc/mon/sbrk.e
b/lang/cem/libcc/mon/sbrk.e
index
ce32376
..
9777c9f
100644
(file)
--- a/
lang/cem/libcc/mon/sbrk.e
+++ b/
lang/cem/libcc/mon/sbrk.e
@@
-37,7
+37,11
@@
loc 0
ste .2
lol 0
- ads EM_WSIZE
+ ads EM_WSIZE ; this is the new heap pointer, but watch out for overflow!
+ dup EM_WSIZE
+ lor 2
+ cmp ; compare with old heap pointer
+ zlt *1
str 2 ; The - possibly - occurring trap is caught
lae .1
loi EM_PSIZE