zephyr/kernel
Daniel DeGrasse 6023d6a142 arch: common: fix copy for ramfunc region during XIP init
ramfunc region is copied into RAM from FLASH region during XIP init. We
copy from the loadaddr of the region, and were previously loading to the
symbol __ramfunc_start. This is incorrect when using an MPU with
alignment requirements, as the __ramfunc_start symbol may have padding
placed before it in the region. The __ramfunc_start symbol still needs
to be aligned in order to be used by the MPU though, so define a new
symbol __ramfunc_region_start, and use that symbol when copying the
__ramfunc region from FLASH to RAM.

Fixes #75296

Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
2024-11-06 10:19:08 -08:00
..
include kernel: Begin abstracting out _sched_spinlock 2024-10-21 18:38:00 -05:00
paging
CMakeLists.txt
Kconfig Revert "kernel: banner: Expose tainted builds" 2024-10-29 14:17:21 -05:00
Kconfig.device
Kconfig.init init: enhance kconfig docs for custom hooks 2024-09-20 13:15:31 +02:00
Kconfig.mem_domain
Kconfig.obj_core
Kconfig.smp kernel: remove `CONFIG_MP_NUM_CPUS` 2024-09-19 18:28:37 +01:00
Kconfig.vm kernel: mmu: support for on-demand mappings 2024-08-26 17:25:41 -04:00
atomic_c.c
banner.c
busy_wait.c
compiler_stack_protect.c arch: kernel: lib: toolchain: Standardize TLS keyword 2024-09-23 10:01:48 +02:00
condvar.c kernel: Apply 'unlikely' attribute 2024-10-15 04:06:32 -04:00
cpu_mask.c kernel: Simplify k_thread_cpu_pin() 2024-09-20 09:02:38 +02:00
device.c device_dt_metadata: handle dt_meta being NULL 2024-08-12 15:54:22 +02:00
dynamic.c
dynamic_disabled.c
errno.c arch: kernel: lib: toolchain: Standardize TLS keyword 2024-09-23 10:01:48 +02:00
events.c
fatal.c
float.c
futex.c
idle.c
init.c zephyr: bulk update to DT_NODE_HAS_STATUS_OKAY 2024-10-03 17:06:52 +01:00
init_static.c
ipi.c
irq_offload.c
kheap.c
mailbox.c
main_weak.c
mem_domain.c
mem_slab.c kernel: Apply 'unlikely' attribute 2024-10-15 04:06:32 -04:00
mempool.c
mmu.c kernel: mmu: install demand mappings for the on-demand linker sections 2024-09-10 17:17:30 -04:00
msg_q.c kernel: Apply 'unlikely' attribute 2024-10-15 04:06:32 -04:00
mutex.c kernel: Apply 'unlikely' attribute 2024-10-15 04:06:32 -04:00
nothread.c
obj_core.c
pipes.c
poll.c
priority_queues.c
queue.c kernel: Apply 'unlikely' attribute 2024-10-15 04:06:32 -04:00
sched.c kernel: inline z_unpend_first_thread() 2024-10-21 18:38:00 -05:00
sem.c kernel: Apply 'unlikely' attribute 2024-10-15 04:06:32 -04:00
smp.c
spinlock_validate.c
stack.c kernel: Apply 'unlikely' attribute 2024-10-15 04:06:32 -04:00
system_work_q.c
thread.c style: kernel: remove unnecessary `return` statements 2024-09-20 11:06:55 +02:00
thread_monitor.c style: kernel: comply with MISRA C:2012 Rule 15.6 2024-09-11 07:40:35 -04:00
timeout.c
timer.c
timeslicing.c
usage.c
userspace.c kernel: userspace: Fix dynamic thread stack allocation for RISC-V 2024-09-04 21:28:36 +02:00
userspace_handler.c
version.c
work.c
xip.c arch: common: fix copy for ramfunc region during XIP init 2024-11-06 10:19:08 -08:00