Browse Source

* forgot to add CheckInitialStkLen function
* fixed two unitinitialized StackLength variables

git-svn-id: trunk@1727 -

tom_at_work 20 năm trước cách đây
mục cha
commit
cc2873232f
2 tập tin đã thay đổi với 6 bổ sung0 xóa
  1. 5 0
      rtl/netware/system.pp
  2. 1 0
      rtl/netwlibc/system.pp

+ 5 - 0
rtl/netware/system.pp

@@ -435,11 +435,16 @@ begin
 end;
 end;
 
 
 
 
+function CheckInitialStkLen(stklen : SizeUInt) : SizeUInt;
+begin
+  result := stklen;
+end;
 {*****************************************************************************
 {*****************************************************************************
                          SystemUnit Initialization
                          SystemUnit Initialization
 *****************************************************************************}
 *****************************************************************************}
 
 
 Begin
 Begin
+  StackLength := CheckInitialStkLen(initialstklen);
   StackBottom := SPtr - StackLength;
   StackBottom := SPtr - StackLength;
   SigTermHandlerActive := false;
   SigTermHandlerActive := false;
   NetwareCheckFunction := nil;
   NetwareCheckFunction := nil;

+ 1 - 0
rtl/netwlibc/system.pp

@@ -519,6 +519,7 @@ end;
 
 
 Begin
 Begin
   getCodeAddresses;
   getCodeAddresses;
+  StackLength := CheckInitialStkLen(initialStkLen);
   StackBottom := SPtr - StackLength;
   StackBottom := SPtr - StackLength;
   SigTermHandlerActive := false;
   SigTermHandlerActive := false;
   NetwareCheckFunction := nil;
   NetwareCheckFunction := nil;