Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 173035
b: refs/heads/master
c: b9af7c0
h: refs/heads/master
i:
  173033: c339f82
  173031: 0c2127b
v: v3
  • Loading branch information
Suresh Siddha authored and H. Peter Anvin committed Oct 20, 2009
1 parent 48e774d commit 6ff35e2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: adc1938994f7f1112d335d998b5218b0aa680ad6
refs/heads/master: b9af7c0d44b8bb71e3af5e94688d076414aa8c87
3 changes: 2 additions & 1 deletion trunk/arch/x86/kernel/head_64.S
Original file line number Diff line number Diff line change
Expand Up @@ -262,11 +262,11 @@ ENTRY(secondary_startup_64)
.quad x86_64_start_kernel
ENTRY(initial_gs)
.quad INIT_PER_CPU_VAR(irq_stack_union)
__FINITDATA

ENTRY(stack_start)
.quad init_thread_union+THREAD_SIZE-8
.word 0
__FINITDATA

bad_address:
jmp bad_address
Expand Down Expand Up @@ -340,6 +340,7 @@ ENTRY(name)
i = i + 1 ; \
.endr

.data
/*
* This default setting generates an ident mapping at address 0x100000
* and a mapping for the kernel that precisely maps virtual address
Expand Down
6 changes: 3 additions & 3 deletions trunk/arch/x86/mm/init_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -699,7 +699,7 @@ static int kernel_set_to_readonly;

void set_kernel_text_rw(void)
{
unsigned long start = PFN_ALIGN(_stext);
unsigned long start = PFN_ALIGN(_text);
unsigned long end = PFN_ALIGN(__start_rodata);

if (!kernel_set_to_readonly)
Expand All @@ -713,7 +713,7 @@ void set_kernel_text_rw(void)

void set_kernel_text_ro(void)
{
unsigned long start = PFN_ALIGN(_stext);
unsigned long start = PFN_ALIGN(_text);
unsigned long end = PFN_ALIGN(__start_rodata);

if (!kernel_set_to_readonly)
Expand All @@ -727,7 +727,7 @@ void set_kernel_text_ro(void)

void mark_rodata_ro(void)
{
unsigned long start = PFN_ALIGN(_stext), end = PFN_ALIGN(__end_rodata);
unsigned long start = PFN_ALIGN(_text), end = PFN_ALIGN(__end_rodata);
unsigned long rodata_start =
((unsigned long)__start_rodata + PAGE_SIZE - 1) & PAGE_MASK;

Expand Down

0 comments on commit 6ff35e2

Please sign in to comment.