-
Notifications
You must be signed in to change notification settings - Fork 7.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(esp_system,ulp): LP core reserved mem optionally executable from HP core (IDFGH-13533) #14422
feat(esp_system,ulp): LP core reserved mem optionally executable from HP core (IDFGH-13533) #14422
Conversation
👋 Hello andylinpersonal, we appreciate your contribution to this project! 📘 Please review the project's Contributions Guide for key guidelines on code, documentation, testing, and more. 🖊️ Please also make sure you have read and signed the Contributor License Agreement for this project. Click to see more instructions ...
Review and merge process you can expect ...
|
components/esp_system/Kconfig
Outdated
depends on IDF_TARGET_ARCH_RISCV && SOC_LP_CORE_SUPPORTED && ESP_SYSTEM_PMP_IDRAM_SPLIT | ||
default "n" | ||
help | ||
If enabled, user can run code only available in LP Core image. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd suggest removing only
in this sentence since the current wording reads as only the LP memory would be usable which is not necessarily how the code is above.
1e5038d
to
52aaaab
Compare
@@ -153,7 +153,11 @@ void esp_cpu_configure_region_protection(void) | |||
PMP_ENTRY_SET(10, SOC_RTC_IRAM_LOW, NONE); | |||
#if CONFIG_ULP_COPROC_RESERVE_MEM | |||
// First part of LP mem is reserved for coprocessor | |||
#if CONFIG_ESP_SYSTEM_PMP_LP_CORE_RESERVE_MEM_EXECUTABLE |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can drop this since C61 does not have an ulp
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unused ESP32-C61 code has been removed, thanks!
components/esp_system/Kconfig
Outdated
@@ -138,6 +138,13 @@ menu "ESP System Settings" | |||
for the data part (above the splitting address). The memory protection is effective | |||
on all access through the IRAM0 and DRAM0 buses. | |||
|
|||
config ESP_SYSTEM_PMP_LP_CORE_RESERVE_MEM_EXECUTABLE | |||
bool "Make LP core reserved memory executable in HP core" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nitpick, should it be
bool "Make LP core reserved memory executable in HP core" | |
bool "Make LP core reserved memory executable from HP core" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo fixed, thanks!
@andylinpersonal Thanks! I don't see any issues in adding this functionality, left some minor nitpicks. |
52aaaab
to
1ac21bd
Compare
sha=1ac21bd27387f013a5d758f42077eed3e55b5588 |
Thanks for contribution again, changes have been merged with 5486653. |
Make LP core reserved memory optionally executable in HP core. Currently its locked to RW in PMP.