| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
|---|
| 1 | 2 | .text |
|---|
| 2 | 3 | #include <linux/linkage.h> |
|---|
| 3 | 4 | #include <asm/segment.h> |
|---|
| 4 | 5 | #include <asm/page_types.h> |
|---|
| 5 | 6 | |
|---|
| 6 | | -# Copyright 2003, 2008 Pavel Machek <pavel@suse.cz>, distribute under GPLv2 |
|---|
| 7 | +# Copyright 2003, 2008 Pavel Machek <pavel@suse.cz |
|---|
| 7 | 8 | |
|---|
| 8 | 9 | .code32 |
|---|
| 9 | 10 | ALIGN |
|---|
| 10 | 11 | |
|---|
| 11 | | -ENTRY(wakeup_pmode_return) |
|---|
| 12 | | -wakeup_pmode_return: |
|---|
| 12 | +SYM_CODE_START(wakeup_pmode_return) |
|---|
| 13 | 13 | movw $__KERNEL_DS, %ax |
|---|
| 14 | 14 | movw %ax, %ss |
|---|
| 15 | 15 | movw %ax, %fs |
|---|
| .. | .. |
|---|
| 38 | 38 | # jump to place where we left off |
|---|
| 39 | 39 | movl saved_eip, %eax |
|---|
| 40 | 40 | jmp *%eax |
|---|
| 41 | +SYM_CODE_END(wakeup_pmode_return) |
|---|
| 41 | 42 | |
|---|
| 42 | 43 | bogus_magic: |
|---|
| 43 | 44 | jmp bogus_magic |
|---|
| .. | .. |
|---|
| 59 | 60 | popl saved_context_eflags |
|---|
| 60 | 61 | |
|---|
| 61 | 62 | movl $ret_point, saved_eip |
|---|
| 62 | | - ret |
|---|
| 63 | + RET |
|---|
| 63 | 64 | |
|---|
| 64 | 65 | |
|---|
| 65 | 66 | restore_registers: |
|---|
| .. | .. |
|---|
| 69 | 70 | movl saved_context_edi, %edi |
|---|
| 70 | 71 | pushl saved_context_eflags |
|---|
| 71 | 72 | popfl |
|---|
| 72 | | - ret |
|---|
| 73 | + RET |
|---|
| 73 | 74 | |
|---|
| 74 | | -ENTRY(do_suspend_lowlevel) |
|---|
| 75 | +SYM_CODE_START(do_suspend_lowlevel) |
|---|
| 75 | 76 | call save_processor_state |
|---|
| 76 | 77 | call save_registers |
|---|
| 77 | 78 | pushl $3 |
|---|
| .. | .. |
|---|
| 85 | 86 | ret_point: |
|---|
| 86 | 87 | call restore_registers |
|---|
| 87 | 88 | call restore_processor_state |
|---|
| 88 | | - ret |
|---|
| 89 | + RET |
|---|
| 90 | +SYM_CODE_END(do_suspend_lowlevel) |
|---|
| 89 | 91 | |
|---|
| 90 | 92 | .data |
|---|
| 91 | 93 | ALIGN |
|---|
| 92 | | -ENTRY(saved_magic) .long 0 |
|---|
| 93 | | -ENTRY(saved_eip) .long 0 |
|---|
| 94 | +SYM_DATA(saved_magic, .long 0) |
|---|
| 95 | +saved_eip: .long 0 |
|---|
| 94 | 96 | |
|---|
| 95 | 97 | # saved registers |
|---|
| 96 | 98 | saved_idt: .long 0,0 |
|---|