aboutsummaryrefslogtreecommitdiffstats
path: root/arch/s390/mm/init.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/s390/mm/init.c')
-rw-r--r--arch/s390/mm/init.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/arch/s390/mm/init.c b/arch/s390/mm/init.c
index 73e290337092..c7b0451397d6 100644
--- a/arch/s390/mm/init.c
+++ b/arch/s390/mm/init.c
@@ -108,6 +108,13 @@ void __init paging_init(void)
108 free_area_init_nodes(max_zone_pfns); 108 free_area_init_nodes(max_zone_pfns);
109} 109}
110 110
111void mark_rodata_ro(void)
112{
113 /* Text and rodata are already protected. Nothing to do here. */
114 pr_info("Write protecting the kernel read-only data: %luk\n",
115 ((unsigned long)&_eshared - (unsigned long)&_stext) >> 10);
116}
117
111void __init mem_init(void) 118void __init mem_init(void)
112{ 119{
113 if (MACHINE_HAS_TLB_LC) 120 if (MACHINE_HAS_TLB_LC)
@@ -126,9 +133,6 @@ void __init mem_init(void)
126 setup_zero_pages(); /* Setup zeroed pages. */ 133 setup_zero_pages(); /* Setup zeroed pages. */
127 134
128 mem_init_print_info(NULL); 135 mem_init_print_info(NULL);
129 printk("Write protected kernel read-only data: %#lx - %#lx\n",
130 (unsigned long)&_stext,
131 PFN_ALIGN((unsigned long)&_eshared) - 1);
132} 136}
133 137
134void free_initmem(void) 138void free_initmem(void)