x86/ACPI/sleep: Move acpi_get_wakeup_address() into sleep.c, remove <asm/realmode...
[sfrench/cifs-2.6.git] / arch / x86 / kernel / acpi / sleep.c
index ca13851f05701387d5faa8bc57eb04fd9b513a9a..26b7256f590fd78a537aec79e2132d1f184c5487 100644 (file)
@@ -26,6 +26,17 @@ unsigned long acpi_realmode_flags;
 static char temp_stack[4096];
 #endif
 
+/**
+ * acpi_get_wakeup_address - provide physical address for S3 wakeup
+ *
+ * Returns the physical address where the kernel should be resumed after the
+ * system awakes from S3, e.g. for programming into the firmware waking vector.
+ */
+unsigned long acpi_get_wakeup_address(void)
+{
+       return ((unsigned long)(real_mode_header->wakeup_start));
+}
+
 /**
  * x86_acpi_enter_sleep_state - enter sleep state
  * @state: Sleep state to enter.