|
|
Xinu for 68000/68010
/* poolinit.c - poolinit */
#include <conf.h>
#include <kernel.h>
#include <mark.h>
#include <bufpool.h>
struct bpool bptab[NBPOOLS];
int nbpools;
#ifdef MEMMARK
MARKER bpmark; /* self initializing mark */
#endif
/*------------------------------------------------------------------------
* poolinit -- initialize the buffer pool routines
*------------------------------------------------------------------------
*/
poolinit()
{
#ifdef MEMMARK
int status;
#endif
#ifdef DEBUG
dotrace("poolinit", NULL, 0);
#endif
#ifdef MEMMARK
disable();
if ( (status=mark(bpmark)) == OK) {
nbpools = 0;
}
restore();
return( (status==OK) ? OK : SYSERR );
#else
nbpools = 0;
return(OK);
#endif
}
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.