arch/x86: Change smm_subregion() prototype
Do this to avoid some amount of explicit typecasting that would be required otherwise. Change-Id: I5bc2c3c1dd579f7c6c3d3354c0691e4ba3c778e1 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/34706 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
This commit is contained in:
@@ -18,14 +18,14 @@
|
||||
#include <stage_cache.h>
|
||||
#include <types.h>
|
||||
|
||||
int __weak smm_subregion(int sub, void **base, size_t *size)
|
||||
int __weak smm_subregion(int sub, uintptr_t *base, size_t *size)
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
|
||||
void __weak stage_cache_external_region(void **base, size_t *size)
|
||||
{
|
||||
if (smm_subregion(SMM_SUBREGION_CACHE, base, size)) {
|
||||
if (smm_subregion(SMM_SUBREGION_CACHE, (uintptr_t *)base, size)) {
|
||||
printk(BIOS_ERR, "ERROR: No cache SMM subregion.\n");
|
||||
*base = NULL;
|
||||
*size = 0;
|
||||
|
Reference in New Issue
Block a user