Lines Matching refs:start_addr
59 char *start_addr; // heap @before a process allocate memory - get updated in eat_mem()
294 // error handling: Make sure the start_addr is not NULL
295 if (start_addr == NULL) {
296 user_error("start_addr from parent is not initialized");
305 if (start_addr < end_addr) { // Heap grows up to higher address
306 for (i = start_addr; i < end_addr; i += PAGE_SIZE) {
312 } else if (start_addr > end_addr) { // Heap grows down to lower address
313 for (i = end_addr; i > start_addr; i -= PAGE_SIZE) {
333 start_addr = NULL;
335 start_addr = sbrk(0);
354 start_addr = NULL;
356 start_addr = sbrk(0);