提交 a7bba17b 编写于 作者: G gorcunov@gmail.com 提交者: Ingo Molnar

x86: relocate_kernel - use PAGE_SIZE instead of numeric constant

Signed-off-by: NCyrill Gorcunov <gorcunov@gmail.com>
Signed-off-by: NIngo Molnar <mingo@elte.hu>
上级 4039ae53
......@@ -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
......
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册