diff options
Diffstat (limited to 'arch/x86/mm')
-rw-r--r-- | arch/x86/mm/init_64.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/x86/mm/init_64.c b/arch/x86/mm/init_64.c index c20d30b440de..7dafd4159ad6 100644 --- a/arch/x86/mm/init_64.c +++ b/arch/x86/mm/init_64.c | |||
@@ -699,7 +699,7 @@ static int kernel_set_to_readonly; | |||
699 | 699 | ||
700 | void set_kernel_text_rw(void) | 700 | void set_kernel_text_rw(void) |
701 | { | 701 | { |
702 | unsigned long start = PFN_ALIGN(_stext); | 702 | unsigned long start = PFN_ALIGN(_text); |
703 | unsigned long end = PFN_ALIGN(__start_rodata); | 703 | unsigned long end = PFN_ALIGN(__start_rodata); |
704 | 704 | ||
705 | if (!kernel_set_to_readonly) | 705 | if (!kernel_set_to_readonly) |
@@ -713,7 +713,7 @@ void set_kernel_text_rw(void) | |||
713 | 713 | ||
714 | void set_kernel_text_ro(void) | 714 | void set_kernel_text_ro(void) |
715 | { | 715 | { |
716 | unsigned long start = PFN_ALIGN(_stext); | 716 | unsigned long start = PFN_ALIGN(_text); |
717 | unsigned long end = PFN_ALIGN(__start_rodata); | 717 | unsigned long end = PFN_ALIGN(__start_rodata); |
718 | 718 | ||
719 | if (!kernel_set_to_readonly) | 719 | if (!kernel_set_to_readonly) |
@@ -727,7 +727,7 @@ void set_kernel_text_ro(void) | |||
727 | 727 | ||
728 | void mark_rodata_ro(void) | 728 | void mark_rodata_ro(void) |
729 | { | 729 | { |
730 | unsigned long start = PFN_ALIGN(_stext), end = PFN_ALIGN(__end_rodata); | 730 | unsigned long start = PFN_ALIGN(_text), end = PFN_ALIGN(__end_rodata); |
731 | unsigned long rodata_start = | 731 | unsigned long rodata_start = |
732 | ((unsigned long)__start_rodata + PAGE_SIZE - 1) & PAGE_MASK; | 732 | ((unsigned long)__start_rodata + PAGE_SIZE - 1) & PAGE_MASK; |
733 | 733 | ||