mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-06-06 21:45:18 +08:00
Hack to the fxp driver to force i386 to be io based.
This commit is contained in:
parent
0d23ec984c
commit
c537dc207c
@ -459,7 +459,15 @@ 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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user