PERFORCE change 213148 for review
Brooks Davis
brooks at FreeBSD.org
Tue Jun 19 15:57:09 UTC 2012
http://p4web.freebsd.org/@@213148?ac=10
Change 213148 by brooks at brooks_ecr_current on 2012/06/19 15:56:12
Do reject non-PAGE_SIZE aligned and sized regions if mmap is to be
configured.
Requested by: rwatson
Affected files ...
.. //depot/projects/ctsrd/beribsd/src/sys/dev/altera/avgen/altera_avgen.c#5 edit
Differences ...
==== //depot/projects/ctsrd/beribsd/src/sys/dev/altera/avgen/altera_avgen.c#5 (text+ko) ====
@@ -382,7 +382,7 @@
device_printf(dev, "couldn't map memory\n");
return (ENXIO);
}
- if (rman_get_size(sc->avg_res) >= PAGE_SIZE) {
+ if (rman_get_size(sc->avg_res) >= PAGE_SIZE || str_mmapio != NULL) {
if (rman_get_size(sc->avg_res) % PAGE_SIZE != 0) {
device_printf(dev,
"memory region not even multiple of page size\n");
More information about the p4-projects
mailing list