shithub: powernv

ref: a691c9111a69257e206ce895d35396d0f6225929
dir: /main.c/

View raw version
#include "u.h"
#include "tos.h"
#include "../port/lib.h"
#include "mem.h"
#include "dat.h"
#include "fns.h"
#include "../port/error.h"
#include "pool.h"
#include "io.h"
#include "ureg.h"

void opalshutdown(void);
void opalconswr(char*,vlong);
void opalconsrd(char*,vlong);

Conf conf;

void
exit(int)
{
	opalshutdown();
}

void
init0(void)
{

}

char*
getconf(char *name)
{
	return nil;
}

void
reboot(void*, void *code, ulong size)
{
}

void
main(void)
{
	char *p = "\nPlan 9\n";
	opalconswr(p, strlen(p));
	exit(0);
}