svn commit: r269332 - in projects/arm64/sys: arm/arm conf

Andrew Turner andrew at FreeBSD.org
Thu Jul 31 14:47:27 UTC 2014


Author: andrew
Date: Thu Jul 31 14:47:26 2014
New Revision: 269332
URL: http://svnweb.freebsd.org/changeset/base/269332

Log:
  Use arm/arm/devmap.c to get pmap_{un,}mapdev. As we don't yet need the
  rest of the code, for now, comment it out.

Modified:
  projects/arm64/sys/arm/arm/devmap.c
  projects/arm64/sys/conf/files.arm64

Modified: projects/arm64/sys/arm/arm/devmap.c
==============================================================================
--- projects/arm64/sys/arm/arm/devmap.c	Thu Jul 31 13:02:56 2014	(r269331)
+++ projects/arm64/sys/arm/arm/devmap.c	Thu Jul 31 14:47:26 2014	(r269332)
@@ -39,6 +39,8 @@ __FBSDID("$FreeBSD$");
 #include <vm/vm_extern.h>
 #include <vm/pmap.h>
 #include <machine/armreg.h>
+
+#if 0
 #include <machine/devmap.h>
 
 static const struct arm_devmap_entry *devmap_table;
@@ -232,6 +234,7 @@ arm_devmap_vtop(void * vpva, vm_size_t s
 
 	return (DEVMAP_PADDR_NOTFOUND);
 }
+#endif
 
 /*
  * Map a set of physical memory pages into the kernel virtual address space.
@@ -247,11 +250,13 @@ void *
 pmap_mapdev(vm_offset_t pa, vm_size_t size)
 {
 	vm_offset_t va, tmpva, offset;
+#if 0
 	void * rva;
 
 	/* First look in the static mapping table. */
 	if ((rva = arm_devmap_ptov(pa, size)) != NULL)
 		return (rva);
+#endif
 	
 	offset = pa & PAGE_MASK;
 	pa = trunc_page(pa);
@@ -280,9 +285,11 @@ pmap_unmapdev(vm_offset_t va, vm_size_t 
 	vm_offset_t tmpva, offset;
 	vm_size_t origsize;
 
+#if 0
 	/* Nothing to do if we find the mapping in the static table. */
 	if (arm_devmap_vtop((void*)va, size) != DEVMAP_PADDR_NOTFOUND)
 		return;
+#endif
 
 	origsize = size;
 	offset = va & PAGE_MASK;
@@ -298,6 +305,7 @@ pmap_unmapdev(vm_offset_t va, vm_size_t 
 	kva_free(va, origsize);
 }
 
+#if 0
 #ifdef DDB
 #include <ddb/ddb.h>
 
@@ -307,4 +315,5 @@ DB_SHOW_COMMAND(devmap, db_show_devmap)
 }
 
 #endif /* DDB */
+#endif
 

Modified: projects/arm64/sys/conf/files.arm64
==============================================================================
--- projects/arm64/sys/conf/files.arm64	Thu Jul 31 13:02:56 2014	(r269331)
+++ projects/arm64/sys/conf/files.arm64	Thu Jul 31 14:47:26 2014	(r269332)
@@ -1,4 +1,5 @@
 
+arm/arm/devmap.c		standard
 arm64/arm64/autoconf.c		standard
 arm64/arm64/bcopy.c		standard
 arm64/arm64/bus_machdep.c	standard


More information about the svn-src-projects mailing list