Lines Matching refs:gNextAddress
51 static unsigned int gNextAddress = 0; variable
74 if (gAddressBase && (gNextAddress - gAddressBase)) in gcleanup()
77 gNextAddress - gAddressBase, in gcleanup()
140 gNextAddress = gAddressBase = in wsbrk()
143 } else if (AlignPage (gNextAddress + size) > (gAddressBase + in wsbrk()
155 gAddressBase = gNextAddress = in wsbrk()
171 if ((size + gNextAddress) > AlignPage (gNextAddress)) in wsbrk()
174 res = VirtualAlloc ((void*)AlignPage (gNextAddress), in wsbrk()
175 (size + gNextAddress - in wsbrk()
176 AlignPage (gNextAddress)), in wsbrk()
181 tmp = (void*)gNextAddress; in wsbrk()
182 gNextAddress = (unsigned int)tmp + size; in wsbrk()
187 unsigned int alignedGoal = AlignPage (gNextAddress + size); in wsbrk()
191 VirtualFree ((void*)alignedGoal, gNextAddress - alignedGoal, in wsbrk()
193 gNextAddress = gNextAddress + size; in wsbrk()
194 return (void*)gNextAddress; in wsbrk()
198 VirtualFree ((void*)gAddressBase, gNextAddress - gAddressBase, in wsbrk()
200 gNextAddress = gAddressBase; in wsbrk()
206 return (void*)gNextAddress; in wsbrk()