mirror of
https://github.com/mmueller41/genode.git
synced 2026-01-21 12:32:56 +01:00
For further information see: http://wiki.netbsd.org/rumpkernel/. In this version I ported the central rump components to Genode in order to take advantage of NetBSD file system implementation. The new 'dde_rump' repository contains the Genode version of the rump libraries and a 'rump_fs' server that implements Genode file-system-session interface. Currently ext2, iso9660, and fat file-systems are supported. Issue #1048
44 lines
841 B
C
44 lines
841 B
C
/**
|
|
* \brief Rump-scheduling upcalls
|
|
* \author Sebastian Sump
|
|
* \date 2013-12-06
|
|
*/
|
|
|
|
/*
|
|
* Copyright (C) 2013-2014 Genode Labs GmbH
|
|
*
|
|
* This file is part of the Genode OS framework, which is distributed
|
|
* under the terms of the GNU General Public License version 2.
|
|
*/
|
|
|
|
#ifndef _SCHED_H_
|
|
#define _SCHED_H_
|
|
|
|
extern "C" {
|
|
#include <sys/cdefs.h>
|
|
#include <sys/types.h>
|
|
#include <rump/rump.h>
|
|
#include <rump/rumpuser.h>
|
|
#include <sys/errno.h>
|
|
}
|
|
|
|
#include <util/hard_context.h>
|
|
|
|
/* upcalls to rump kernel */
|
|
extern struct rumpuser_hyperup _rump_upcalls;
|
|
|
|
static inline void
|
|
rumpkern_unsched(int *nlocks, void *interlock)
|
|
{
|
|
_rump_upcalls.hyp_backend_unschedule(0, nlocks, interlock);
|
|
}
|
|
|
|
|
|
static inline void
|
|
rumpkern_sched(int nlocks, void *interlock)
|
|
{
|
|
_rump_upcalls.hyp_backend_schedule(nlocks, interlock);
|
|
}
|
|
|
|
#endif /* _SCHED_H_ */
|