1 /* $NetBSD: rumpfiber_sp.c,v 1.4 2015/02/15 00:54:32 justin 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.4 2015/02/15 00:54:32 justin Exp $"); 34 #endif /* !lint */ 35 36 #include <stdint.h> 37 #include <stdlib.h> 38 39 #include <rump/rumpuser.h> 40 41 #include "rumpfiber.h" 42 43 /*ARGSUSED*/ 44 int 45 rumpuser_sp_init(const char *url, 46 const char *ostype, const char *osrelease, const char *machine) 47 { 48 49 return 0; 50 } 51 52 /*ARGSUSED*/ 53 void 54 rumpuser_sp_fini(void *arg) 55 { 56 57 } 58 59 /*ARGSUSED*/ 60 int 61 rumpuser_sp_raise(void *arg, int signo) 62 { 63 64 abort(); 65 } 66 67 /*ARGSUSED*/ 68 int 69 rumpuser_sp_copyin(void *arg, const void *raddr, void *laddr, size_t len) 70 { 71 72 abort(); 73 } 74 75 /*ARGSUSED*/ 76 int 77 rumpuser_sp_copyinstr(void *arg, const void *raddr, void *laddr, size_t *len) 78 { 79 80 abort(); 81 } 82 83 /*ARGSUSED*/ 84 int 85 rumpuser_sp_copyout(void *arg, const void *laddr, void *raddr, size_t dlen) 86 { 87 88 abort(); 89 } 90 91 /*ARGSUSED*/ 92 int 93 rumpuser_sp_copyoutstr(void *arg, const void *laddr, void *raddr, size_t *dlen) 94 { 95 96 abort(); 97 } 98 99 /*ARGSUSED*/ 100 int 101 rumpuser_sp_anonmmap(void *arg, size_t howmuch, void **addr) 102 { 103 104 abort(); 105 } 106