diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/kernel/head_64.S | 3 | ||||
-rw-r--r-- | arch/x86/mm/init_64.c | 6 |
2 files changed, 5 insertions, 4 deletions
diff --git a/arch/x86/kernel/head_64.S b/arch/x86/kernel/head_64.S index 780cd928fcd..b55ee4ff509 100644 --- a/arch/x86/kernel/head_64.S +++ b/arch/x86/kernel/head_64.S | |||
@@ -262,11 +262,11 @@ ENTRY(secondary_startup_64) | |||
262 | .quad x86_64_start_kernel | 262 | .quad x86_64_start_kernel |
263 | ENTRY(initial_gs) | 263 | ENTRY(initial_gs) |
264 | .quad INIT_PER_CPU_VAR(irq_stack_union) | 264 | .quad INIT_PER_CPU_VAR(irq_stack_union) |
265 | __FINITDATA | ||
266 | 265 | ||
267 | ENTRY(stack_start) | 266 | ENTRY(stack_start) |
268 | .quad init_thread_union+THREAD_SIZE-8 | 267 | .quad init_thread_union+THREAD_SIZE-8 |
269 | .word 0 | 268 | .word 0 |
269 | __FINITDATA | ||
270 | 270 | ||
271 | bad_address: | 271 | bad_address: |
272 | jmp bad_address | 272 | jmp bad_address |
@@ -340,6 +340,7 @@ ENTRY(name) | |||
340 | i = i + 1 ; \ | 340 | i = i + 1 ; \ |
341 | .endr | 341 | .endr |
342 | 342 | ||
343 | .data | ||
343 | /* | 344 | /* |
344 | * This default setting generates an ident mapping at address 0x100000 | 345 | * This default setting generates an ident mapping at address 0x100000 |
345 | * and a mapping for the kernel that precisely maps virtual address | 346 | * and a mapping for the kernel that precisely maps virtual address |
diff --git a/arch/x86/mm/init_64.c b/arch/x86/mm/init_64.c index c20d30b440d..7dafd4159ad 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 | ||