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