Lines Matching refs:memtop
51 static char *memtop = NULL; /* PWP: top of current memory */ variable
164 xprintf(" (memtop = %p membot = %p)\n", memtop, membot); \
171 xprintf(" (memtop = %p membot = %p)\n", memtop, membot); \
266 memtop = (char *) op; in morecore()
268 membot = memtop; in morecore()
270 memtop = sbrk((int) (1024 - ((long) op & 0x3ff))); in morecore()
271 memtop += (long) (1024 - ((long) op & 0x3ff)); in morecore()
277 memtop = sbrk(1 << rnu); /* PWP */ in morecore()
278 op = (union overhead *) memtop; in morecore()
282 memtop += (long) (1 << rnu); in morecore()
318 CHECK(!memtop || !membot, in free()
320 CHECK(cp > (ptr_t) memtop, in free()
531 if (memtop < ((char *) ptr) + n) in smalloc()
532 memtop = ((char *) ptr) + n; in smalloc()
554 if (memtop < ((char *) ptr) + n) in srealloc()
555 memtop = ((char *) ptr) + n; in srealloc()
581 if (memtop < ((char *) ptr) + n) in scalloc()
582 memtop = ((char *) ptr) + n; in scalloc()
631 (unsigned long) membot, (unsigned long) memtop, in showall()
636 memtop = sbrk(0); in showall()
639 (unsigned long) membot, (unsigned long) memtop, in showall()
640 (unsigned long) (memtop - membot)); in showall()