diff options
author | Helge Deller <deller@gmx.de> | 2019-05-10 17:00:01 +0200 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2019-05-10 21:00:44 +0200 |
commit | 8d0e051cc75e2b1a7e2fd51fc56af332c9619618 (patch) | |
tree | ccf08363081a35a3cd8fb4ada4b62cc5fefb1840 /arch/parisc/kernel | |
parent | e6eb5fe9123f05dcbf339ae5c0b6d32fcc0685d5 (diff) |
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>
Diffstat (limited to 'arch/parisc/kernel')
-rw-r--r-- | arch/parisc/kernel/vmlinux.lds.S | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/arch/parisc/kernel/vmlinux.lds.S b/arch/parisc/kernel/vmlinux.lds.S index a8be7a47fcc0..c3b1b9c24ede 100644 --- a/arch/parisc/kernel/vmlinux.lds.S +++ b/arch/parisc/kernel/vmlinux.lds.S @@ -18,9 +18,6 @@ *(.data..vm0.pgd) \ *(.data..vm0.pte) -/* No __ro_after_init data in the .rodata section - which will always be ro */ -#define RO_AFTER_INIT_DATA - #include <asm-generic/vmlinux.lds.h> /* needed for the processor specific cache alignment size */ |