aboutsummaryrefslogtreecommitdiff
path: root/src/cpu/amd/pi/00730F01/microcode_fam16h.c
diff options
context:
space:
mode:
authorZheng Bao <zheng.bao@amd.com>2020-05-29 23:10:12 +0800
committerFelix Held <felix-coreboot@felixheld.de>2020-06-02 18:55:01 +0000
commit695d86243e7d2291b670d12b61446bd50708377e (patch)
treeb944b78d4c815f17799420d43828fb8f424ad3ae /src/cpu/amd/pi/00730F01/microcode_fam16h.c
parent12e9bd439431256666075abce69f58db02f12449 (diff)
amd/microcode: Change equivalant ID width to 16bit
The definition of processor_rev_id in struct microcode is 16 bits. So we need to change the a series of parameters passing to 16 bits. Change-Id: Iacabee7e571bd37f3aca106d515d755969daf8f3 Signed-off-by: Zheng Bao <zheng.bao@amd.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/41869 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
Diffstat (limited to 'src/cpu/amd/pi/00730F01/microcode_fam16h.c')
-rw-r--r--src/cpu/amd/pi/00730F01/microcode_fam16h.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cpu/amd/pi/00730F01/microcode_fam16h.c b/src/cpu/amd/pi/00730F01/microcode_fam16h.c
index 496f2ec9f1..7d47258d1c 100644
--- a/src/cpu/amd/pi/00730F01/microcode_fam16h.c
+++ b/src/cpu/amd/pi/00730F01/microcode_fam16h.c
@@ -88,7 +88,7 @@ static void apply_microcode_patch(const struct microcode *m)
}
static void amd_update_microcode(const void *ucode, size_t ucode_len,
- uint32_t equivalent_processor_rev_id)
+ uint16_t equivalent_processor_rev_id)
{
const struct microcode *m;
const uint8_t *c = ucode;
@@ -99,7 +99,7 @@ static void amd_update_microcode(const void *ucode, size_t ucode_len,
apply_microcode_patch(m);
}
-void amd_update_microcode_from_cbfs(uint32_t equivalent_processor_rev_id)
+void amd_update_microcode_from_cbfs(uint16_t equivalent_processor_rev_id)
{
const void *ucode;
size_t ucode_len;