parisc: Enable the ro_after_init feature
authorHelge Deller <deller@gmx.de>
Fri, 10 May 2019 15:00:01 +0000 (17:00 +0200)
committerHelge Deller <deller@gmx.de>
Fri, 10 May 2019 19:00:44 +0000 (21:00 +0200)
commit8d0e051cc75e2b1a7e2fd51fc56af332c9619618
treeccf08363081a35a3cd8fb4ada4b62cc5fefb1840
parente6eb5fe9123f05dcbf339ae5c0b6d32fcc0685d5
parisc: Enable the ro_after_init feature

This patch modifies the initial page mapping functions in the following way:

During bootup the init, text and data pages will be mapped RWX and if
supported, with huge pages.

At final stage of the bootup, the kernel calls free_initmem() and then all
pages will be remapped either R-X (for text and read-only data) or RW- (for
data). The __init pages will be dropped.

This reflects the behaviour of the x86 platform.

Signed-off-by: Helge Deller <deller@gmx.de>
arch/parisc/include/asm/cache.h
arch/parisc/kernel/vmlinux.lds.S
arch/parisc/mm/init.c