summaryrefslogtreecommitdiffstats
path: root/sys/riscv
diff options
context:
space:
mode:
authorbr <br@FreeBSD.org>2016-04-26 11:53:37 +0000
committerbr <br@FreeBSD.org>2016-04-26 11:53:37 +0000
commit778cc5a8110efa54481c3c539aab11ad44e1efad (patch)
tree97a3c2543ae513e2b876f0ecd1746036805b5285 /sys/riscv
parent392b4907a4ffb8e699201d053a85e4a32b845a6a (diff)
downloadFreeBSD-src-778cc5a8110efa54481c3c539aab11ad44e1efad.zip
FreeBSD-src-778cc5a8110efa54481c3c539aab11ad44e1efad.tar.gz
Move arm's devmap to some generic place, so it can be used
by other architectures. Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D6091 Sponsored by: DARPA, AFRL Sponsored by: HEIF5
Diffstat (limited to 'sys/riscv')
-rw-r--r--sys/riscv/include/vmparam.h2
-rw-r--r--sys/riscv/riscv/devmap.c61
2 files changed, 2 insertions, 61 deletions
diff --git a/sys/riscv/include/vmparam.h b/sys/riscv/include/vmparam.h
index 04803bb..a2166c8 100644
--- a/sys/riscv/include/vmparam.h
+++ b/sys/riscv/include/vmparam.h
@@ -239,4 +239,6 @@ extern vm_offset_t init_pt_va;
#define ZERO_REGION_SIZE (64 * 1024) /* 64KB */
+#define DEVMAP_MAX_VADDR VM_MAX_KERNEL_ADDRESS
+
#endif /* !_MACHINE_VMPARAM_H_ */
diff --git a/sys/riscv/riscv/devmap.c b/sys/riscv/riscv/devmap.c
deleted file mode 100644
index 092532a..0000000
--- a/sys/riscv/riscv/devmap.c
+++ /dev/null
@@ -1,61 +0,0 @@
-/*-
- * Copyright (c) 2015 Ruslan Bukin <br@bsdpad.com>
- * All rights reserved.
- *
- * Portions of this software were developed by SRI International and the
- * University of Cambridge Computer Laboratory under DARPA/AFRL contract
- * FA8750-10-C-0237 ("CTSRD"), as part of the DARPA CRASH research programme.
- *
- * Portions of this software were developed by the University of Cambridge
- * Computer Laboratory as part of the CTSRD Project, with support from the
- * UK Higher Education Innovation Fund (HEIF).
- *
- * 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 <sys/cdefs.h>
-__FBSDID("$FreeBSD$");
-
-/* RISC-V doesn't provide memory-mapped devices yet */
-
-#include "opt_ddb.h"
-
-#include <sys/param.h>
-#include <sys/systm.h>
-#include <vm/vm.h>
-#include <vm/vm_extern.h>
-#include <vm/pmap.h>
-#include <machine/riscvreg.h>
-#include <machine/vmparam.h>
-
-void *
-pmap_mapdev(vm_offset_t pa, vm_size_t size)
-{
-
- return (NULL);
-}
-
-void
-pmap_unmapdev(vm_offset_t va, vm_size_t size)
-{
-
-}
OpenPOWER on IntegriCloud