Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitbc816c6

Browse files
authored
Updated HWDT to use IRAM_ATTR instead of ICACHE_RAM_ATTR. (#8013)
1 parent5704bf2 commitbc816c6

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

‎cores/esp8266/hwdt_app_entry.cpp‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ extern uint32_t stack_thunk_get_stack_bot() __attribute__((weak, alias("__zero_r
300300
#ifdef USE_IRAM
301301
#undef USE_IRAM
302302
#defineUSE_IRAM1
303-
#defineIRAM_MAYBEICACHE_RAM_ATTR
303+
#defineIRAM_MAYBEIRAM_ATTR
304304

305305
#else
306306
#undef USE_IRAM
@@ -441,8 +441,8 @@ extern "C" {
441441

442442
externcont_t *get_noextra4k_g_pcont(void);
443443

444-
cont_t *ICACHE_RAM_ATTRget_noextra4k_g_pcont(void) __attribute__((weak));
445-
cont_t *ICACHE_RAM_ATTRget_noextra4k_g_pcont(void) {
444+
cont_t *IRAM_ATTRget_noextra4k_g_pcont(void) __attribute__((weak));
445+
cont_t *IRAM_ATTRget_noextra4k_g_pcont(void) {
446446
returnNULL;
447447
}
448448

@@ -1027,7 +1027,7 @@ extern "C" void Cache_Read_Disable(void);
10271027
extern"C"voidCache_Read_Enable(uint8_t map,uint8_t p,uint8_t v);
10281028

10291029
#ifndef USE_IRAM
1030-
staticvoidICACHE_RAM_ATTR__attribute__((noinline)) handle_hwdt_icache() __attribute__((used));
1030+
staticvoidIRAM_ATTR__attribute__((noinline)) handle_hwdt_icache() __attribute__((used));
10311031
voidhandle_hwdt_icache() {
10321032
Cache_Read_Enable(0,0, ICACHE_SIZE_16);
10331033
handle_hwdt();
@@ -1055,7 +1055,7 @@ void hwdt_pre_sdk_init(void) {
10551055
#endif
10561056
}
10571057

1058-
staticvoidICACHE_RAM_ATTR__attribute__((noinline)) hwdt_pre_sdk_init_icache(void) __attribute__((used));
1058+
staticvoidIRAM_ATTR__attribute__((noinline)) hwdt_pre_sdk_init_icache(void) __attribute__((used));
10591059
voidhwdt_pre_sdk_init_icache(void) {
10601060
Cache_Read_Enable(0,0, ICACHE_SIZE_16);
10611061
#ifdef DEBUG_ESP_HWDT_UART_SPEED
@@ -1154,7 +1154,7 @@ asm (
11541154
);
11551155

11561156
#else
1157-
voidICACHE_RAM_ATTR app_entry_start(void) {
1157+
voidIRAM_ATTR app_entry_start(void) {
11581158
11591159
#ifdef USE_IRAM
11601160
handle_hwdt();
@@ -1191,7 +1191,7 @@ void ICACHE_RAM_ATTR app_entry_start(void) {
11911191
__builtin_unreachable();
11921192
}
11931193
1194-
voidICACHE_RAM_ATTR app_entry_redefinable(void) {
1194+
voidIRAM_ATTR app_entry_redefinable(void) {
11951195
/*
11961196
* There are 4 sections of code that share the stack starting near
11971197
* 0x40000000.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp