11.4Sjustin/*	$NetBSD: rumpfiber_sp.c,v 1.4 2015/02/15 00:54:32 justin Exp $	*/
21.2Spooka
31.1Sjustin/*
41.1Sjustin * Copyright (c) 2014 Justin Cormack.  All Rights Reserved.
51.1Sjustin *
61.1Sjustin * Redistribution and use in source and binary forms, with or without
71.1Sjustin * modification, are permitted provided that the following conditions
81.1Sjustin * are met:
91.1Sjustin * 1. Redistributions of source code must retain the above copyright
101.1Sjustin *    notice, this list of conditions and the following disclaimer.
111.1Sjustin * 2. Redistributions in binary form must reproduce the above copyright
121.1Sjustin *    notice, this list of conditions and the following disclaimer in the
131.1Sjustin *    documentation and/or other materials provided with the distribution.
141.1Sjustin *
151.1Sjustin * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
161.1Sjustin * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
171.1Sjustin * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
181.1Sjustin * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
191.1Sjustin * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
201.1Sjustin * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
211.1Sjustin * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
221.1Sjustin * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
231.1Sjustin * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
241.1Sjustin * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
251.1Sjustin * SUCH DAMAGE.
261.1Sjustin */
271.1Sjustin
281.1Sjustin/* stubs for sp functions as not supported for fibers yet */
291.1Sjustin
301.1Sjustin#include "rumpuser_port.h"
311.1Sjustin
321.1Sjustin#if !defined(lint)
331.4Sjustin__RCSID("$NetBSD: rumpfiber_sp.c,v 1.4 2015/02/15 00:54:32 justin Exp $");
341.1Sjustin#endif /* !lint */
351.1Sjustin
361.4Sjustin#include <stdint.h>
371.1Sjustin#include <stdlib.h>
381.1Sjustin
391.1Sjustin#include <rump/rumpuser.h>
401.1Sjustin
411.1Sjustin#include "rumpfiber.h"
421.1Sjustin
431.1Sjustin/*ARGSUSED*/
441.1Sjustinint
451.1Sjustinrumpuser_sp_init(const char *url,
461.1Sjustin	const char *ostype, const char *osrelease, const char *machine)
471.1Sjustin{
481.1Sjustin
491.1Sjustin	return 0;
501.1Sjustin}
511.1Sjustin
521.1Sjustin/*ARGSUSED*/
531.1Sjustinvoid
541.1Sjustinrumpuser_sp_fini(void *arg)
551.1Sjustin{
561.1Sjustin
571.1Sjustin}
581.1Sjustin
591.1Sjustin/*ARGSUSED*/
601.1Sjustinint
611.1Sjustinrumpuser_sp_raise(void *arg, int signo)
621.1Sjustin{
631.1Sjustin
641.3Sjustin	abort();
651.1Sjustin}
661.1Sjustin
671.1Sjustin/*ARGSUSED*/
681.1Sjustinint
691.1Sjustinrumpuser_sp_copyin(void *arg, const void *raddr, void *laddr, size_t len)
701.1Sjustin{
711.1Sjustin
721.3Sjustin	abort();
731.1Sjustin}
741.1Sjustin
751.1Sjustin/*ARGSUSED*/
761.1Sjustinint
771.1Sjustinrumpuser_sp_copyinstr(void *arg, const void *raddr, void *laddr, size_t *len)
781.1Sjustin{
791.1Sjustin
801.3Sjustin	abort();
811.1Sjustin}
821.1Sjustin
831.1Sjustin/*ARGSUSED*/
841.1Sjustinint
851.1Sjustinrumpuser_sp_copyout(void *arg, const void *laddr, void *raddr, size_t dlen)
861.1Sjustin{
871.1Sjustin
881.3Sjustin	abort();
891.1Sjustin}
901.1Sjustin
911.1Sjustin/*ARGSUSED*/
921.1Sjustinint
931.1Sjustinrumpuser_sp_copyoutstr(void *arg, const void *laddr, void *raddr, size_t *dlen)
941.1Sjustin{
951.1Sjustin
961.3Sjustin	abort();
971.1Sjustin}
981.1Sjustin
991.1Sjustin/*ARGSUSED*/
1001.1Sjustinint
1011.1Sjustinrumpuser_sp_anonmmap(void *arg, size_t howmuch, void **addr)
1021.1Sjustin{
1031.1Sjustin
1041.3Sjustin	abort();
1051.1Sjustin}
106