mirror of https://github.com/ARMmbed/mbed-os.git
Tools: Ensure vtor reserved bits are all 0
### Description The VTOR reserves the lowest 7 bits. This PR changes the round up behavoir of the application offset to make sure that the address used for the in-flash vector table always ends in 7 0's. Fixes #7392 ### Pull request type [x] Fix [ ] Refactor [ ] Target update [ ] Functionality change [ ] Breaking changepull/8270/head
parent
45f59f88c3
commit
7a97f480f8
|
@ -684,7 +684,7 @@ class Config(object):
|
|||
size = self._header_size(header_format)
|
||||
region = Region("header", start, size, False, None)
|
||||
start += size
|
||||
start = ((start + 7) // 8) * 8
|
||||
start = ((start + (2**7 - 1)) // (2**7)) * (2**7)
|
||||
return (start, region)
|
||||
|
||||
@staticmethod
|
||||
|
|
Loading…
Reference in New Issue