.. | .. |
---|
7 | 7 | */ |
---|
8 | 8 | |
---|
9 | 9 | #include <linux/acpi.h> |
---|
10 | | -#include <linux/bootmem.h> |
---|
11 | 10 | #include <linux/memblock.h> |
---|
12 | 11 | #include <linux/dmi.h> |
---|
13 | 12 | #include <linux/cpumask.h> |
---|
| 13 | +#include <linux/pgtable.h> |
---|
14 | 14 | #include <asm/segment.h> |
---|
15 | 15 | #include <asm/desc.h> |
---|
16 | | -#include <asm/pgtable.h> |
---|
17 | 16 | #include <asm/cacheflush.h> |
---|
18 | 17 | #include <asm/realmode.h> |
---|
19 | 18 | |
---|
.. | .. |
---|
28 | 27 | #endif |
---|
29 | 28 | |
---|
30 | 29 | /** |
---|
| 30 | + * acpi_get_wakeup_address - provide physical address for S3 wakeup |
---|
| 31 | + * |
---|
| 32 | + * Returns the physical address where the kernel should be resumed after the |
---|
| 33 | + * system awakes from S3, e.g. for programming into the firmware waking vector. |
---|
| 34 | + */ |
---|
| 35 | +unsigned long acpi_get_wakeup_address(void) |
---|
| 36 | +{ |
---|
| 37 | + return ((unsigned long)(real_mode_header->wakeup_start)); |
---|
| 38 | +} |
---|
| 39 | + |
---|
| 40 | +/** |
---|
31 | 41 | * x86_acpi_enter_sleep_state - enter sleep state |
---|
32 | 42 | * @state: Sleep state to enter. |
---|
33 | 43 | * |
---|
34 | 44 | * Wrapper around acpi_enter_sleep_state() to be called by assmebly. |
---|
35 | 45 | */ |
---|
36 | | -acpi_status asmlinkage __visible x86_acpi_enter_sleep_state(u8 state) |
---|
| 46 | +asmlinkage acpi_status __visible x86_acpi_enter_sleep_state(u8 state) |
---|
37 | 47 | { |
---|
38 | 48 | return acpi_enter_sleep_state(state); |
---|
39 | 49 | } |
---|