projects
/
coreboot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add support for mainboard specific suspend/resume handler
[coreboot.git]
/
src
/
arch
/
x86
/
boot
/
acpi.c
diff --git
a/src/arch/x86/boot/acpi.c
b/src/arch/x86/boot/acpi.c
index f81127a02fbc540738e06fcf509308044d529597..f17e73e3f677f2e0cfa1726310ae9b5a349cfcce 100644
(file)
--- a/
src/arch/x86/boot/acpi.c
+++ b/
src/arch/x86/boot/acpi.c
@@
-474,8
+474,12
@@
void suspend_resume(void)
/* If we happen to be resuming find wakeup vector and jump to OS. */
wake_vec = acpi_find_wakeup_vector();
/* If we happen to be resuming find wakeup vector and jump to OS. */
wake_vec = acpi_find_wakeup_vector();
- if (wake_vec)
+ if (wake_vec) {
+ /* Call mainboard resume handler first, if defined. */
+ if (mainboard_suspend_resume)
+ mainboard_suspend_resume();
acpi_jump_to_wakeup(wake_vec);
acpi_jump_to_wakeup(wake_vec);
+ }
}
/* This is to be filled by SB code - startup value what was found. */
}
/* This is to be filled by SB code - startup value what was found. */