ACPI S3: Move SMP trampoline recovery
No need to make low memory backup unless we are on S3 resume path. Hide those details from ACPI. Change-Id: Ic08b6d70c7895b094afdb3c77e020ff37ad632a1 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/15241 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
@@ -1127,12 +1127,6 @@ void *acpi_find_wakeup_vector(void)
|
||||
return wake_vec;
|
||||
}
|
||||
|
||||
#if CONFIG_SMP
|
||||
extern char *lowmem_backup;
|
||||
extern char *lowmem_backup_ptr;
|
||||
extern int lowmem_backup_size;
|
||||
#endif
|
||||
|
||||
#define WAKEUP_BASE 0x600
|
||||
|
||||
void (*acpi_do_wakeup)(uintptr_t vector, u32 backup_source, u32 backup_target,
|
||||
@@ -1155,15 +1149,6 @@ void acpi_jump_to_wakeup(void *vector)
|
||||
}
|
||||
}
|
||||
|
||||
#if CONFIG_SMP
|
||||
// FIXME: This should go into the ACPI backup memory, too. No pork sausages.
|
||||
/*
|
||||
* Just restore the SMP trampoline and continue with wakeup on
|
||||
* assembly level.
|
||||
*/
|
||||
memcpy(lowmem_backup_ptr, lowmem_backup, lowmem_backup_size);
|
||||
#endif
|
||||
|
||||
/* Copy wakeup trampoline in place. */
|
||||
memcpy((void *)WAKEUP_BASE, &__wakeup, __wakeup_size);
|
||||
|
||||
|
Reference in New Issue
Block a user