Skip to content

Commit

Permalink
x86: compressed head_64 - use ENTRY,ENDPROC macros
Browse files Browse the repository at this point in the history
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>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Cyrill Gorcunov authored and Ingo Molnar committed Feb 19, 2009
1 parent 324bda9 commit 2d4eeec
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions arch/x86/boot/compressed/head_64.S
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down Expand Up @@ -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 */
Expand Down Expand Up @@ -295,7 +294,6 @@ relocated:
call decompress_kernel
popq %rsi


/*
* Jump to the decompressed kernel.
*/
Expand Down

0 comments on commit 2d4eeec

Please sign in to comment.