nuttx/arch/risc-v
Ville Juven 9af8b740e6 Elf loader: give temporary write access to user .text memory
When the .elf file is loaded from disk, the kernel must be given write
access to the allocated .text section in the task's address environment.

The access is removed after the elf is loaded and relocations are done.

NOTE:
The reason this works for the ARM implementation, is that the ARM MMU
can be configured to give write access for the privileged mode, but
revoke write access for the user mode.

Regardless, it would be smart to revoke write access even for the
kernel, when the kernel does not need it. This framework allows doing
that, if someone wishes to take up the task.
2022-05-03 21:25:25 +09:00
..
include arch: risc-v: Add support for semihosting and hostfs 2022-05-02 19:46:58 +08:00
src Elf loader: give temporary write access to user .text memory 2022-05-03 21:25:25 +09:00
Kconfig arch: risc-v: Add support for semihosting and hostfs 2022-05-02 19:46:58 +08:00