Red Hat Bugzilla – Bug 86274
Little Endian dependancy
Last modified: 2007-04-18 12:52:09 EDT
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0)
Description of problem:
'serial.c' calls the serial device driver's 'set_config' with
key 'CYG_IO_SET_CONFIG_SERIAL_HW_RX_FLOW_THROTTLE', 'buf' points to
a 'cyg_uint32' buffer. At least two serial device drivers, 'ser_16x5x.c'
and 'sh_scif_serial.c', assume 'buf' points to a 'cyg_uint8'. A big-endian
target will fail.
I suspect most serial device drivers will have this problem because they all
seem be derived from the same source. This problem is not limited to the 2.0
beta. It also appears in the CVS sources.
I suggest better comments in 'serial.h' could have prevented this.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Examine the code.
Affected drivers updated - nice catch, thanks.