Bug 86274

Summary: Little Endian dependancy
Product: [Retired] eCos Reporter: Need Real Name <michael_checky>
Component: Serial device driverAssignee: Gary Thomas <gary>
Status: CLOSED CURRENTRELEASE QA Contact: Jonathan Larmour <jifl-bugzilla>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.0 beta 1   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2003-03-18 18:22:48 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Need Real Name 2003-03-18 17:52:14 UTC
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):


How reproducible:
Always

Steps to Reproduce:
1. Examine the code.
2.
3.
    

Additional info:

Comment 1 Gary Thomas 2003-03-18 18:22:48 UTC
Affected drivers updated - nice catch, thanks.