shithub: drawcpu

ref: 9c00c613885deba1ed19e905604571ef432cab11
dir: /kern/stub.c/

View raw version
#include "u.h"
#include "lib.h"
#include "dat.h"
#include "fns.h"
#include "error.h"

int
iseve(void)
{
	return 1;
}

void
splx(int x)
{
	USED(x);
}

int
splhi(void)
{
	return 0;
}

int
spllo(void)
{
	return 0;
}

long
hostdomainwrite(char *a, int n)
{
	strncpy(hostdomain, a, n);
	return n;
}

long
hostownerwrite(char *a, int n)
{
	strncpy(eve, a, n);
	return n;
}

void
setmalloctag(void *v, uintptr tag)
{
	USED(v);
	USED(tag);
}

void
setrealloctag(void *v, uintptr tag)
{
	USED(v);
	USED(tag);
}

void
exhausted(char *s)
{
	panic("out of %s", s);
}