diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2022-06-03 07:40:19 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2022-06-08 09:10:12 +0200 |
commit | 0b9497a6dd1cb89e9b8100572554d31598481f9f (patch) | |
tree | 4c83414695244eb8fe1b68340bd99d8b63328f4e /cpukit/score | |
parent | build: Assert value properties only if not None (diff) | |
download | rtems-0b9497a6dd1cb89e9b8100572554d31598481f9f.tar.bz2 |
arm: Fix PMSA region mapping with 0x0 end address
A section may span up to the end of the address range. In this case the
end address is zero. Use the base address to check if a region should
be before another region.
Update #4202.
Diffstat (limited to 'cpukit/score')
-rw-r--r-- | cpukit/score/cpu/arm/aarch32-psma-init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/score/cpu/arm/aarch32-psma-init.c b/cpukit/score/cpu/arm/aarch32-psma-init.c index 177b2a6d7c..3519104b21 100644 --- a/cpukit/score/cpu/arm/aarch32-psma-init.c +++ b/cpukit/score/cpu/arm/aarch32-psma-init.c @@ -153,7 +153,7 @@ size_t _AArch32_PMSA_Map_sections_to_regions( } } - if ( end <= region_base ) { + if ( base <= region_base ) { size_t i; if ( region_used >= region_max ) { |