diff --git a/arch/x86/boot/pmjump.S b/arch/x86/boot/pmjump.S index d2fb8f0..09bfc6e 100644 --- a/arch/x86/boot/pmjump.S +++ b/arch/x86/boot/pmjump.S @@ -44,6 +44,7 @@ /* Transition to 32-bit flat mode */ data32 ljmp $__BOOT_CS, $in_pm32 + .size protected_mode_jump, .-protected_mode_jump /* ------------------------------------------------------------------------ */ @@ -83,5 +84,5 @@ jmp uboot_entry - .size protected_mode_jump, .-protected_mode_jump + .size in_pm32, .-in_pm32 diff --git a/arch/x86/lib/traveler.S b/arch/x86/lib/traveler.S index 0614195..4f7a9e3 100644 --- a/arch/x86/lib/traveler.S +++ b/arch/x86/lib/traveler.S @@ -72,6 +72,7 @@ /* jump to relocation, flush prefetch queue, and reload %cs */ DATA32 ljmp $__BOOT_CS, $return_to_flatmode + .size real_to_prot, .-real_to_prot /* ----------------------------------------------------------------------- */ .section .boot.text.return_to_flatmode, "ax" @@ -102,8 +103,7 @@ /* flag we returned happy here */ xorl %eax, %eax ret - - .size real_to_prot, .-real_to_prot + .size return_to_flatmode, .-return_to_flatmode /* ------------------------------------------------------------------------ */ @@ -140,13 +140,16 @@ /* at last, also limit the code segment to 16 bit */ ljmp $__REAL_CS, $return_to_realmode + .size prot_to_real, .-prot_to_real /* ----------------------------------------------------------------------- */ .section .boot.text.return_to_realmode, "ax" -return_to_realmode: + .globl return_to_realmode + .type return_to_realmode, @function .code16 +return_to_realmode: /* disable protected mode */ movl %cr0, %eax andl $(~0x00000001), %eax @@ -176,5 +179,5 @@ /* return on realmode stack! */ DATA32 ret - .size prot_to_real, .-prot_to_real + .size return_to_realmode, .-return_to_realmode