Bug 53571 - FLASH address handling inadequate
Summary: FLASH address handling inadequate
Status: CLOSED CURRENTRELEASE
Alias: None
Product: eCos
Classification: Retired
Component: RedBoot
Version: CVS
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: ecc-bugs-int
QA Contact: ecc-bugs-int
URL:
Whiteboard:
Keywords:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2001-09-12 01:02 UTC by George Thomas
Modified: 2007-04-18 16:37 UTC (History)
0 users

(edit)
Clone Of:
(edit)
Last Closed: 2001-09-12 01:04:28 UTC


Attachments (Terms of Use)

Description George Thomas 2001-09-12 01:02:52 UTC
Description of Problem:

The current code in RedBoot for manipulating FLASH addresses falls
over in the case where the end of FLASH wraps the available address
size.


Version-Release number of selected component (if applicable):


How Reproducible:


Steps to Reproduce:
1. Imagine where FLASH base is 0xFF800000 and the size is 0x800000.
2. 
3. 

Actual Results:


Expected Results:


Additional Information:

Comment 1 George Thomas 2001-09-12 01:04:24 UTC
Changing how RedBoot keeps track of the end of FLASH by letting it
be the "last" byte instead of the first byte after (and all of the
repercussions of this) would fix the problem.

Comment 2 George Thomas 2001-09-12 02:54:17 UTC
All uses of FLASH addresses in RedBoot are now either (void *) or
CYG_ADDRESS which should avoid any addressing problems in the future.

Also, the 'end' address is kept internally as the last usable address
which avoids the wrap around problem.


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