summaryrefslogtreecommitdiffstats
path: root/rtemsbsd/rtems
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2013-10-30 10:56:59 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2013-10-31 13:18:53 +0100
commitadaa24668e085dc7eff62f674ff3e2d23e68457f (patch)
tree0dc030ed7f9d5e94f3892e892c487ff0db6a7ac3 /rtemsbsd/rtems
parentDelete unused "sys/kern/kern_environment.c" (diff)
downloadrtems-libbsd-adaa24668e085dc7eff62f674ff3e2d23e68457f.tar.bz2
Inline copyinstr(), copyin() and copyout()
Diffstat (limited to 'rtemsbsd/rtems')
-rw-r--r--rtemsbsd/rtems/rtems-bsd-copyinout.c48
-rw-r--r--rtemsbsd/rtems/rtems-bsd-support.c37
2 files changed, 0 insertions, 85 deletions
diff --git a/rtemsbsd/rtems/rtems-bsd-copyinout.c b/rtemsbsd/rtems/rtems-bsd-copyinout.c
deleted file mode 100644
index 3d3707a5..00000000
--- a/rtemsbsd/rtems/rtems-bsd-copyinout.c
+++ /dev/null
@@ -1,48 +0,0 @@
-/**
- * @file
- *
- * @ingroup rtems_bsd_rtems
- *
- * @brief This file contains the RTEMS implementation of the bsd functions
- * from the copyinout.c file.
- */
-
-/*
- * Copyright (c) 2012 On-Line Applications Research Corporation (OAR).
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-
-#include <machine/rtems-bsd-config.h>
-
-#include <string.h>
-#include <stdio.h>
-#include <rtems.h>
-
-int
-copyinstr(const void *udaddr, void *kaddr, size_t len, size_t *done)
-{
- memcpy(kaddr, udaddr, len);
- *done = len;
- return 0;
-}
diff --git a/rtemsbsd/rtems/rtems-bsd-support.c b/rtemsbsd/rtems/rtems-bsd-support.c
index 119e974d..739684bd 100644
--- a/rtemsbsd/rtems/rtems-bsd-support.c
+++ b/rtemsbsd/rtems/rtems-bsd-support.c
@@ -56,43 +56,6 @@ int maxfilesperproc = 27; /* XXX per-proc open files limit */
uintptr_t dpcpu_off[MAXCPU];
int hogticks = 2; /* hogticks = 2 * sched_quantum */
-int
-copyout(const void *kaddr, void *udaddr, size_t len)
-{
- bcopy(kaddr, udaddr, len);
- return (0);
-}
-
-int
-copyin(const void *udaddr, void *kaddr, size_t len)
-{
- bcopy(udaddr, kaddr, len);
- return (0);
-}
-
-#if 0
-/*
- * As of 27 March 2012, use version in kern_subr.c
- */
-int
-copyiniov(struct iovec *iovp, u_int iovcnt, struct iovec **iov, int error)
-{
- u_int iovlen;
-
- *iov = NULL;
- if (iovcnt > UIO_MAXIOV)
- return (error);
- iovlen = iovcnt * sizeof (struct iovec);
- *iov = malloc(iovlen, M_IOV, M_WAITOK);
- error = copyin(iovp, *iov, iovlen);
- if (error) {
- free(*iov, M_IOV);
- *iov = NULL;
- }
- return (error);
-}
-#endif
-
void
critical_enter(void)
{