This is an automated email from the ASF dual-hosted git repository.

pkarashchenko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new c0cd56a758 risc-v/esp32c3: Fix retrieval for linker-defined symbol
c0cd56a758 is described below

commit c0cd56a758fb5fa8836b70dd545f096de34b6cb6
Author: Gustavo Henrique Nihei <gustavo.ni...@espressif.com>
AuthorDate: Thu Sep 29 15:21:12 2022 -0300

    risc-v/esp32c3: Fix retrieval for linker-defined symbol
    
    Signed-off-by: Gustavo Henrique Nihei <gustavo.ni...@espressif.com>
---
 arch/risc-v/src/esp32c3/esp32c3_allocateheap.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/risc-v/src/esp32c3/esp32c3_allocateheap.c 
b/arch/risc-v/src/esp32c3/esp32c3_allocateheap.c
index 5ef98bc2d9..37336abc6b 100644
--- a/arch/risc-v/src/esp32c3/esp32c3_allocateheap.c
+++ b/arch/risc-v/src/esp32c3/esp32c3_allocateheap.c
@@ -91,7 +91,7 @@ void up_allocate_heap(void **heap_start, size_t *heap_size)
    * Check boards/risc-v/esp32c3.
    */
 
-  extern uint8_t *_sheap;
+  extern uint8_t _sheap[];
   extern const struct esp32c3_rom_layout_s *ets_rom_layout_p;
 
   board_autoled_on(LED_HEAPALLOCATE);
@@ -123,7 +123,7 @@ void up_allocate_kheap(void **heap_start, size_t *heap_size)
    * Check boards/risc-v/esp32c3.
    */
 
-  extern uint8_t *_sheap;
+  extern uint8_t _sheap[];
 
   uintptr_t kbase = (uintptr_t)_sheap;
   uintptr_t ktop  = KDRAM_END;

Reply via email to