- # the U-Boot region must start at position 7MB in the image. In this
- # case the ROM starts at 0xff800000, so the position of the first
- # entry in the image corresponds to that.
- if (self.target_pos < self.pos or
- self.target_pos >= self.pos + self.size):
- self.Raise('Microcode pointer _dt_ucode_base_size at %08x is '
- 'outside the image ranging from %08x to %08x' %
- (self.target_pos, self.pos, self.pos + self.size))
+ # the U-Boot region must start at offset 7MB in the section. In this
+ # case the ROM starts at 0xff800000, so the offset of the first
+ # entry in the section corresponds to that.
+ if (self.target_offset < self.image_pos or
+ self.target_offset >= self.image_pos + self.size):
+ self.Raise('Microcode pointer _dt_ucode_base_size at %08x is outside the section ranging from %08x to %08x' %
+ (self.target_offset, self.image_pos,
+ self.image_pos + self.size))