svn commit: r225236 - projects/armv6/sys/dev/uart

Olivier Houchard cognet at FreeBSD.org
Sun Aug 28 19:02:45 UTC 2011


Author: cognet
Date: Sun Aug 28 19:02:45 2011
New Revision: 225236
URL: http://svn.freebsd.org/changeset/base/225236

Log:
  We want to pass the physical address to bus_space_map(), not the virtual one.
  Maybe as the device is already mapped, there's no need to call bus_space_map
  at all ?
  
  Submitted by:	Damjan Marion

Modified:
  projects/armv6/sys/dev/uart/uart_bus_fdt.c

Modified: projects/armv6/sys/dev/uart/uart_bus_fdt.c
==============================================================================
--- projects/armv6/sys/dev/uart/uart_bus_fdt.c	Sun Aug 28 18:25:31 2011	(r225235)
+++ projects/armv6/sys/dev/uart/uart_bus_fdt.c	Sun Aug 28 19:02:45 2011	(r225236)
@@ -198,7 +198,7 @@ uart_cpu_getdev(int devtype, struct uart
 	err = fdt_regsize(node, &start, &size);
 	if (err)
 		return (ENXIO);
-	start += fdt_immr_va;
+	start += fdt_immr_pa;
 
 	return (bus_space_map(di->bas.bst, start, size, 0, &di->bas.bsh));
 }


More information about the svn-src-projects mailing list