Bug 86274 - Little Endian dependancy
Little Endian dependancy
Status: CLOSED CURRENTRELEASE
Product: eCos
Classification: Retired
Component: Serial device driver (Show other bugs)
2.0 beta 1
All Linux
medium Severity medium
: ---
: ---
Assigned To: Gary Thomas
Jonathan Larmour
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2003-03-18 12:52 EST by Need Real Name
Modified: 2007-04-18 12:52 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2003-03-18 13:22:48 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Need Real Name 2003-03-18 12:52:14 EST
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 13:22:48 EST
Affected drivers updated - nice catch, thanks.

Note You need to log in before you can comment on or make changes to this bug.