lkml.org 
[lkml]   [2009]   [Feb]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[RFC 5/6] x86: compressed head_64 - use ENTRY,ENDPROC macros
Impact: clenaup

Linker script will put startup_32 at predefined
address so using ENTRY will not bloat the code
size.

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
---
arch/x86/boot/compressed/head_64.S | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)

Index: linux-2.6.git/arch/x86/boot/compressed/head_64.S
===================================================================
--- linux-2.6.git.orig/arch/x86/boot/compressed/head_64.S
+++ linux-2.6.git/arch/x86/boot/compressed/head_64.S
@@ -35,9 +35,7 @@

.section ".text.head"
.code32
- .globl startup_32
-
-startup_32:
+ENTRY(startup_32)
cld
/* test KEEP_SEGMENTS flag to see if the bootloader is asking
* us to not reload segments */
@@ -176,6 +174,7 @@ startup_32:

/* Jump from 32bit compatibility mode into 64bit mode. */
lret
+ENDPROC(startup_32)

no_longmode:
/* This isn't an x86-64 CPU so hang */
@@ -295,7 +294,6 @@ relocated:
call decompress_kernel
popq %rsi

-
/*
* Jump to the decompressed kernel.
*/


\
 
 \ /
  Last update: 2009-02-13 22:57    [W:0.096 / U:4.580 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site