intel_adsp: linker: Rename text area variables
Use Zephyr's convention for text region start and end. Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
This commit is contained in:
parent
0724453c64
commit
05cd4b07f7
3 changed files with 6 additions and 7 deletions
|
@ -234,7 +234,7 @@ SECTIONS {
|
||||||
} >vector_double_text
|
} >vector_double_text
|
||||||
|
|
||||||
.text : {
|
.text : {
|
||||||
_text_start = .;
|
__text_region_start = .;
|
||||||
*(.iram1 .iram1.*)
|
*(.iram1 .iram1.*)
|
||||||
*(.entry.text)
|
*(.entry.text)
|
||||||
*(.init.literal)
|
*(.init.literal)
|
||||||
|
@ -245,7 +245,7 @@ SECTIONS {
|
||||||
*(.fini.literal)
|
*(.fini.literal)
|
||||||
KEEP(*(.fini))
|
KEEP(*(.fini))
|
||||||
*(.gnu.version)
|
*(.gnu.version)
|
||||||
_text_end = .;
|
__text_region_end = .;
|
||||||
} >ram
|
} >ram
|
||||||
|
|
||||||
.rodata : ALIGN(4096)
|
.rodata : ALIGN(4096)
|
||||||
|
|
|
@ -260,7 +260,7 @@ SECTIONS {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
.text : {
|
.text : {
|
||||||
_text_start = .;
|
__text_region_start = .;
|
||||||
*(.iram1 .iram1.*)
|
*(.iram1 .iram1.*)
|
||||||
*(.entry.text)
|
*(.entry.text)
|
||||||
*(.init.literal)
|
*(.init.literal)
|
||||||
|
@ -271,7 +271,7 @@ SECTIONS {
|
||||||
*(.fini.literal)
|
*(.fini.literal)
|
||||||
KEEP(*(.fini))
|
KEEP(*(.fini))
|
||||||
*(.gnu.version)
|
*(.gnu.version)
|
||||||
_text_end = .;
|
__text_region_end = .;
|
||||||
} >RAM
|
} >RAM
|
||||||
|
|
||||||
.rodata : ALIGN(4096)
|
.rodata : ALIGN(4096)
|
||||||
|
|
|
@ -7,9 +7,8 @@
|
||||||
#define ZEPHYR_SOC_INTEL_ADSP_DEBUG_HELPERS_H_
|
#define ZEPHYR_SOC_INTEL_ADSP_DEBUG_HELPERS_H_
|
||||||
|
|
||||||
#include <adsp_memory.h>
|
#include <adsp_memory.h>
|
||||||
|
#include <zephyr/linker/linker-defs.h>
|
||||||
|
|
||||||
extern char _text_start[];
|
|
||||||
extern char _text_end[];
|
|
||||||
extern char _imr_start[];
|
extern char _imr_start[];
|
||||||
extern char _imr_end[];
|
extern char _imr_end[];
|
||||||
extern char _end[];
|
extern char _end[];
|
||||||
|
@ -19,7 +18,7 @@ extern char _cached_end[];
|
||||||
|
|
||||||
static inline bool intel_adsp_ptr_executable(const void *p)
|
static inline bool intel_adsp_ptr_executable(const void *p)
|
||||||
{
|
{
|
||||||
return (p >= (void *)_text_start && p <= (void *)_text_end) ||
|
return (p >= (void *)__text_region_start && p <= (void *)__text_region_end) ||
|
||||||
(p >= (void *)_imr_start && p <= (void *)_imr_end);
|
(p >= (void *)_imr_start && p <= (void *)_imr_end);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue