Descriptiondynamically generate strides in fmap_find() to cover all of ROM
This changes the hard coded array of strides to cover with an algorithm that
will result in every bit of the ROM being checked. Now the algorithm starts
at 1/2 the ROM's total size and divides its stride by 2 on each iteration.
BUG=
TEST=Tested on Alex with an FMAP structure at various alignments (2M, 1M, 64K, 4K, 16, 5, 1).
Patch Set 1 #Patch Set 2 : adds brute force method if stride reaches 16 bytes, updates comments #Patch Set 3 : minor fix to a comment #Patch Set 4 : include stride == 16 in clever method, update comment #Messages
Total messages: 7 (0 generated)
|