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 fbc4fad231379bc7ec500514daf29cd743040253..ce12bb8678ad0938d7a00e2bc45dc0dccf9d8ef6 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 e252c0ed953968656229c279cd5f32906638cf64..c2c8b9d6e241ff0969ffb1eaa99b903d63223e4d 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