[rtems-libbsd commit] FXP: Remove hack and use hint provided by application

Joel Sherrill joel at rtems.org
Mon Jul 9 19:30:51 UTC 2012


Module:    rtems-libbsd
Branch:    master
Commit:    4f8495ef668d3084545fbf5dd61f273a7be2528f
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=4f8495ef668d3084545fbf5dd61f273a7be2528f

Author:    Joel Sherrill <joel.sherrill at oarcorp.com>
Date:      Mon Jul  9 14:32:34 2012 -0500

FXP: Remove hack and use hint provided by application

---

 freebsd/dev/fxp/if_fxp.c |    8 --------
 1 files changed, 0 insertions(+), 8 deletions(-)

diff --git a/freebsd/dev/fxp/if_fxp.c b/freebsd/dev/fxp/if_fxp.c
index 7d07dae..51ee51a 100644
--- a/freebsd/dev/fxp/if_fxp.c
+++ b/freebsd/dev/fxp/if_fxp.c
@@ -459,15 +459,7 @@ fxp_attach(device_t dev)
 	 * We default to memory mapping. Then we accept an override from the
 	 * command line. Then we check to see which one is enabled.
 	 */
-#ifndef __rtems__        /* XXX NOTE: This is a hack. */
 	prefer_iomap = 0;
-#else   /* __rtems__ */
-#if defined(__i386__) 
-	prefer_iomap = 1;
-#else
-	prefer_iomap = 0;
-#endif
-#endif /* __rtems__ */
 	resource_int_value(device_get_name(dev), device_get_unit(dev),
 	    "prefer_iomap", &prefer_iomap);
 	if (prefer_iomap)




More information about the vc mailing list