File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
core/shared/platform/nuttx Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 19
19
#define IRAM0_CACHE_ADDRESS_HIGH 0x44000000
20
20
#define IRAM_ATTR locate_data(".iram1")
21
21
22
+ #define INTERNAL_SRAM_1_DBUS_ADDRESS_LOW 0x3fc88000
23
+ #define INTERNAL_SRAM_1_DBUS_ADDRESS_HIGH 0x3fcf0000
24
+ #define INTERNAL_SRAM_1_IBUS_ADDRESS_LOW 0x40378000
25
+ #define INTERNAL_SRAM_1_IBUS_ADDRESS_HIGH 0x403e0000
26
+
22
27
#define in_ibus_ext (addr ) \
23
28
(((uint32)addr >= IRAM0_CACHE_ADDRESS_LOW) \
24
29
&& ((uint32)addr < IRAM0_CACHE_ADDRESS_HIGH))
@@ -182,6 +187,11 @@ os_get_dbus_mirror(void *ibus)
182
187
if (in_ibus_ext (ibus )) {
183
188
return (void * )((uint8 * )ibus - MEM_DUAL_BUS_OFFSET );
184
189
}
190
+ else if (INTERNAL_SRAM_1_IBUS_ADDRESS_LOW <= (uintptr_t )ibus
191
+ && (uintptr_t )ibus < INTERNAL_SRAM_1_IBUS_ADDRESS_HIGH ) {
192
+ return (void * )((uintptr_t )ibus - INTERNAL_SRAM_1_IBUS_ADDRESS_LOW
193
+ + INTERNAL_SRAM_1_DBUS_ADDRESS_LOW );
194
+ }
185
195
else {
186
196
return ibus ;
187
197
}
You can’t perform that action at this time.
0 commit comments