Skip to content

Commit

Permalink
x86: relocate_kernel - use PAGE_SIZE instead of numeric constant
Browse files Browse the repository at this point in the history
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
gorcunov@gmail.com authored and Ingo Molnar committed Apr 17, 2008
1 parent 4039ae5 commit a7bba17
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion arch/x86/kernel/relocate_kernel_32.S
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ relocate_new_kernel:
movl %eax, %cr3

/* setup a new stack at the end of the physical control page */
lea 4096(%edi), %esp
lea PAGE_SIZE(%edi), %esp

/* jump to identity mapped page */
movl %edi, %eax
Expand Down
2 changes: 1 addition & 1 deletion arch/x86/kernel/relocate_kernel_64.S
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ relocate_new_kernel:
movq %r9, %cr3

/* setup a new stack at the end of the physical control page */
lea 4096(%r8), %rsp
lea PAGE_SIZE(%r8), %rsp

/* jump to identity mapped page */
addq $(identity_mapped - relocate_kernel), %r8
Expand Down

0 comments on commit a7bba17

Please sign in to comment.