aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorScott Wood <scottwood@freescale.com>2007-04-27 03:08:13 +1000
committerPaul Mackerras <paulus@samba.org>2007-04-27 21:13:56 +1000
commite4bb688d9f11d7fee927312cc97d443472c7c212 (patch)
treefcaa10701b293cfa1dcb7c3dca3e4b4435a81a80 /lib
parent3c5f6162549b9045a2925dff64c140c7f49ea344 (diff)
[POWERPC] bootwrapper: Fix array handling in dt_xlate_reg().
This fixes a few bugs in how dt_xlate_reg() handles address arrays: 1. copy_val() was copying into the wrong end of the array, resulting in random stack garbage at the other end. 2. dt_xlate_reg() was getting the result from the wrong end of the array. 3. add_reg() and sub_reg() were treating the arrays as little-endian rather than big-endian. 4. add_reg() only returned an error on a carry out of the entire array, rather than out of the naddr portion. 5. The requested reg resource was checked to see if it exceeded the size of the reg property, but not to see if it exceeded the size of the buffer. Signed-off-by: Scott Wood <scottwood@freescale.com> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions