File:  [XINU] / xinu / sys / mdump.c
Revision 1.1.1.2 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:39:32 2018 UTC (8 years, 2 months ago) by root
Branches: xinu, MAIN
CVS tags: xinu-19910600, HEAD
Xinu for 68000/68010

/* mdump.c - mdump, mdumph */

#include <kernel.h>
#include <mem.h>

/*------------------------------------------------------------------------
 *  mdump  --  dump free memory list
 *------------------------------------------------------------------------
 */
mdump()
{
	struct	mblock	*mptr;

	disable();
	kprintf("Dump of free memory block list:\n");
	for( mptr=memlist.mnext ; mptr!=NULL ; mptr=mptr->mnext)
		kprintf("  block at %x, length %u (0x%x)\n",
			mptr,mptr->mlen, mptr->mlen);
	restore();
}

/*------------------------------------------------------------------------
 *  mdumph  --  dump free memory list and halt
 *------------------------------------------------------------------------
 */
mdumph()
{
	struct	mblock	*mptr;

	disable();
	kprintf("Dump of free memory block list:\n");
	for( mptr=memlist.mnext ; mptr!=NULL ; mptr=mptr->mnext)
		kprintf("  block at %o, length %u (0%o)\n",
			mptr,mptr->mlen, mptr->mlen);
	halt();
	restore();
}

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.