Преглед на файлове

x86: relocate_kernel - use PAGE_SIZE instead of numeric constant

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
gorcunov@gmail.com преди 17 години
родител
ревизия
a7bba17bf0
променени са 2 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 1 1
      arch/x86/kernel/relocate_kernel_32.S
  2. 1 1
      arch/x86/kernel/relocate_kernel_64.S

+ 1 - 1
arch/x86/kernel/relocate_kernel_32.S

@@ -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

+ 1 - 1
arch/x86/kernel/relocate_kernel_64.S

@@ -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