rumpfiber_sp.c revision 1.1
1/*
2 * Copyright (c) 2014 Justin Cormack.  All Rights Reserved.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 * 1. Redistributions of source code must retain the above copyright
8 *    notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright
10 *    notice, this list of conditions and the following disclaimer in the
11 *    documentation and/or other materials provided with the distribution.
12 *
13 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
14 * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
15 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
16 * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
17 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
19 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23 * SUCH DAMAGE.
24 */
25
26/* stubs for sp functions as not supported for fibers yet */
27
28#include "rumpuser_port.h"
29
30#if !defined(lint)
31__RCSID("$NetBSD: rumpfiber_sp.c,v 1.1 2014/07/11 20:26:31 justin Exp $");
32#endif /* !lint */
33
34#include <stdlib.h>
35
36#include <rump/rumpuser.h>
37
38#include "rumpfiber.h"
39
40/*ARGSUSED*/
41int
42rumpuser_sp_init(const char *url,
43	const char *ostype, const char *osrelease, const char *machine)
44{
45
46	return 0;
47}
48
49/*ARGSUSED*/
50void
51rumpuser_sp_fini(void *arg)
52{
53
54}
55
56/*ARGSUSED*/
57int
58rumpuser_sp_raise(void *arg, int signo)
59{
60
61	printk("rumphyper: unimplemented rumpuser_sp_raise\n");
62	exit(1);
63}
64
65/*ARGSUSED*/
66int
67rumpuser_sp_copyin(void *arg, const void *raddr, void *laddr, size_t len)
68{
69
70	printk("rumphyper: unimplemented rumpuser_sp_copyin\n");
71	exit(1);
72}
73
74/*ARGSUSED*/
75int
76rumpuser_sp_copyinstr(void *arg, const void *raddr, void *laddr, size_t *len)
77{
78
79	printk("rumphyper: unimplemented rumpuser_sp_copyinstr\n");
80	exit(1);
81}
82
83/*ARGSUSED*/
84int
85rumpuser_sp_copyout(void *arg, const void *laddr, void *raddr, size_t dlen)
86{
87
88	printk("rumphyper: unimplemented rumpuser_sp_copyout\n");
89	exit(1);
90}
91
92/*ARGSUSED*/
93int
94rumpuser_sp_copyoutstr(void *arg, const void *laddr, void *raddr, size_t *dlen)
95{
96
97	printk("rumphyper: unimplemented rumpuser_sp_copyoutstr\n");
98	exit(1);
99}
100
101/*ARGSUSED*/
102int
103rumpuser_sp_anonmmap(void *arg, size_t howmuch, void **addr)
104{
105
106	printk("rumphyper: unimplemented rumpuser_sp_anonmmap\n");
107	exit(1);
108}
109