[PATCH] powerpc/8xx: Load modules closer to kernel text
Michael Ellerman
mpe at ellerman.id.au
Thu Apr 1 00:39:14 AEDT 2021
Christophe Leroy <christophe.leroy at csgroup.eu> writes:
> On the 8xx, TASK_SIZE is 0x80000000. The space between TASK_SIZE and
> PAGE_OFFSET is not used.
>
> Use it to load modules in order to minimise the distance between
> kernel text and modules and avoid trampolines in modules to access
> kernel functions or other module functions.
>
> Define a 16Mbytes area for modules, that's more than enough.
16MB seems kind of small.
At least on 64-bit we could potentially have hundreds of MBs of modules.
cheers
More information about the Linuxppc-dev
mailing list