/*
* This file and its contents are supplied under the terms of the
* Common Development and Distribution License ("CDDL"), version 1.0.
* You may only use this file in accordance with the terms of version
* 1.0 of the CDDL.
*
* A full copy of the text of the CDDL should have accompanied this
* source. A copy of the CDDL is also available via the Internet at
*/
/*
* Copyright 2014 Nexenta Systems, Inc. All rights reserved.
*/
#include <time.h>
#include <stdlib.h>
#include <unistd.h>
#include <fakekernel.h>
/* Some kernel code takes the address of this. */
proc_t *
_curproc(void)
{
return (&p0);
}
.zone_name = "global",
.zone_zsched = &p0, 0
};
zone_t *
_curzone(void)
{
return (&zone0);
}
ddi_get_pid(void)
{
}
int
{
return (0);
}
void
{
}
/*
* This library does not really need an "init" function, but
* providing one the main program can call is an easy way to
* make sure this library is loaded into the debugger, and
* gives us a way to avoid elfcheck complaints in the build.
*/
void
fakekernel_init(void)
{
}