kopia lustrzana https://github.com/espressif/esp-idf
Merge branch 'bugfix/soc_cpu_signed_compare_v4_0_pr5687' into 'release/v4.0'
fix compiler warning: comparison of integer expressions of different... See merge request espressif/esp-idf!12049customer/11kv_v4.0_xiaomi
commit
c26e20770d
|
@ -74,7 +74,7 @@ static inline void cpu_init_memctl()
|
||||||
static inline void cpu_configure_region_protection()
|
static inline void cpu_configure_region_protection()
|
||||||
{
|
{
|
||||||
const uint32_t pages_to_protect[] = {0x00000000, 0x80000000, 0xa0000000, 0xc0000000, 0xe0000000};
|
const uint32_t pages_to_protect[] = {0x00000000, 0x80000000, 0xa0000000, 0xc0000000, 0xe0000000};
|
||||||
for (int i = 0; i < sizeof(pages_to_protect)/sizeof(pages_to_protect[0]); ++i) {
|
for (size_t i = 0; i < sizeof(pages_to_protect)/sizeof(pages_to_protect[0]); ++i) {
|
||||||
cpu_write_dtlb(pages_to_protect[i], 0xf);
|
cpu_write_dtlb(pages_to_protect[i], 0xf);
|
||||||
cpu_write_itlb(pages_to_protect[i], 0xf);
|
cpu_write_itlb(pages_to_protect[i], 0xf);
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue