| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
|---|
| 1 | 2 | /* ----------------------------------------------------------------------- * |
|---|
| 2 | 3 | * |
|---|
| 3 | 4 | * Copyright (C) 1991, 1992 Linus Torvalds |
|---|
| 4 | 5 | * Copyright 2007 rPath, Inc. - All Rights Reserved |
|---|
| 5 | | - * |
|---|
| 6 | | - * This file is part of the Linux kernel, and is made available under |
|---|
| 7 | | - * the terms of the GNU General Public License version 2. |
|---|
| 8 | 6 | * |
|---|
| 9 | 7 | * ----------------------------------------------------------------------- */ |
|---|
| 10 | 8 | |
|---|
| .. | .. |
|---|
| 23 | 21 | /* |
|---|
| 24 | 22 | * void protected_mode_jump(u32 entrypoint, u32 bootparams); |
|---|
| 25 | 23 | */ |
|---|
| 26 | | -GLOBAL(protected_mode_jump) |
|---|
| 24 | +SYM_FUNC_START_NOALIGN(protected_mode_jump) |
|---|
| 27 | 25 | movl %edx, %esi # Pointer to boot_params table |
|---|
| 28 | 26 | |
|---|
| 29 | 27 | xorl %ebx, %ebx |
|---|
| .. | .. |
|---|
| 42 | 40 | |
|---|
| 43 | 41 | # Transition to 32-bit mode |
|---|
| 44 | 42 | .byte 0x66, 0xea # ljmpl opcode |
|---|
| 45 | | -2: .long in_pm32 # offset |
|---|
| 43 | +2: .long .Lin_pm32 # offset |
|---|
| 46 | 44 | .word __BOOT_CS # segment |
|---|
| 47 | | -ENDPROC(protected_mode_jump) |
|---|
| 45 | +SYM_FUNC_END(protected_mode_jump) |
|---|
| 48 | 46 | |
|---|
| 49 | 47 | .code32 |
|---|
| 50 | 48 | .section ".text32","ax" |
|---|
| 51 | | -GLOBAL(in_pm32) |
|---|
| 49 | +SYM_FUNC_START_LOCAL_NOALIGN(.Lin_pm32) |
|---|
| 52 | 50 | # Set up data segments for flat 32-bit mode |
|---|
| 53 | 51 | movl %ecx, %ds |
|---|
| 54 | 52 | movl %ecx, %es |
|---|
| .. | .. |
|---|
| 74 | 72 | lldt %cx |
|---|
| 75 | 73 | |
|---|
| 76 | 74 | jmpl *%eax # Jump to the 32-bit entrypoint |
|---|
| 77 | | -ENDPROC(in_pm32) |
|---|
| 75 | +SYM_FUNC_END(.Lin_pm32) |
|---|