bite the bullet and make 'initStackBottom' a compilerproc

This commit is contained in:
Araq
2012-06-24 20:00:25 +02:00
parent 776920dc71
commit ee98c76d2e
3 changed files with 18 additions and 16 deletions

View File

@@ -639,6 +639,7 @@ when not defined(useNimRtl):
else:
var a = cast[TAddress](theStackBottom) # and not PageMask - PageSize*2
var b = cast[TAddress](gch.stackBottom)
#c_fprintf(c_stdout, "old: %p new: %p;\n",gch.stackBottom,theStackBottom)
when stackIncreases:
gch.stackBottom = cast[pointer](min(a, b))
else: