mp_init: Pass microcode size to MPinit
Extend get_microcode_info() to return the microcode size. This is being used in the following commit which uses the size to copy the microcode update to RAM in order to speed up MPinit. Depending on the SPI flash interface speed, the microcode size and the number of APs this can improve boot time by seconds. Since microcode size isn't used yet this is not a functional change. Change-Id: I1385e04c56e1411f0847a1c201c17e460c957477 Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/90894 Reviewed-by: Angel Pons <th3fanbus@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
ea1a722d2b
commit
484e39c068
16 changed files with 85 additions and 31 deletions
|
|
@ -47,7 +47,7 @@ struct mp_ops {
|
|||
* Optionally fill in pointer to microcode and indicate if the APs
|
||||
* can load the microcode in parallel.
|
||||
*/
|
||||
void (*get_microcode_info)(const void **microcode, int *parallel);
|
||||
void (*get_microcode_info)(const void **microcode, size_t *size, int *parallel);
|
||||
/*
|
||||
* Optionally provide a callback prior to the APs starting SMM
|
||||
* relocation or CPU driver initialization. However, note that
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue