x86: relocate_kernel - use PAGE_SIZE instead of numeric constant
authorgorcunov@gmail.com <gorcunov@gmail.com>
Sat, 22 Mar 2008 21:00:07 +0000 (00:00 +0300)
committerIngo Molnar <mingo@elte.hu>
Thu, 17 Apr 2008 15:41:29 +0000 (17:41 +0200)
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/relocate_kernel_32.S
arch/x86/kernel/relocate_kernel_64.S

index fbc4fad..ce12bb8 100644 (file)
@@ -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
index e252c0e..c2c8b9d 100644 (file)
@@ -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