OSDN Git Service

riscv: Change code model of module to medany to improve data accessing
authorVincent Chen <vincent.chen@sifive.com>
Fri, 21 Feb 2020 02:47:55 +0000 (10:47 +0800)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Tue, 3 Mar 2020 18:27:46 +0000 (10:27 -0800)
commitaad15bc85c189261b0554a7dc8e053641dd4025c
tree5514fdeb5db500ae542b733ae9aa11ec62fe15f4
parent0cff8bff7af886af0923d5c91776cd51603e531f
riscv: Change code model of module to medany to improve data accessing

All the loaded module locates in the region [&_end-2G,VMALLOC_END] at
runtime, so the distance from the module start to the end of the kernel
image does not exceed 2GB. Hence, the code model of the kernel module can
be changed to medany to improve the performance data access.

Signed-off-by: Vincent Chen <vincent.chen@sifive.com>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
arch/riscv/Makefile