diff options
author | Jacob Garber <jgarber1@ualberta.ca> | 2019-06-28 10:10:37 -0600 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2019-07-07 20:19:05 +0000 |
commit | 37bec0b3971efa18f6fcc405edfb4272d215752d (patch) | |
tree | bfa4187c55688ff417b10a3e003f5921943fcaf3 /payloads/coreinfo/coreinfo.h | |
parent | 598af2e2c2785c00eb4290cdcefe1082b2a6f858 (diff) | |
download | coreboot-37bec0b3971efa18f6fcc405edfb4272d215752d.tar.xz |
payloads/coreinfo: Use fixed-width integers for cpuid
This function executes the cpuid instruction, which takes a 32 bit input
value (idx), and then stores output in eax, ebx, ecx, and edx, which are
all 32 bit registers. Update the prototype to use fixed-width integers,
and update all usage calls appropriately.
Change-Id: I15876fa35628d3a505864fb49be4fdab1fd19f4a
Signed-off-by: Jacob Garber <jgarber1@ualberta.ca>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/33862
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr>
Diffstat (limited to 'payloads/coreinfo/coreinfo.h')
-rw-r--r-- | payloads/coreinfo/coreinfo.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/payloads/coreinfo/coreinfo.h b/payloads/coreinfo/coreinfo.h index 073c5f9a87..03e59c9bb1 100644 --- a/payloads/coreinfo/coreinfo.h +++ b/payloads/coreinfo/coreinfo.h @@ -27,8 +27,7 @@ struct coreinfo_module { int (*handle) (int); }; -extern void docpuid(int, unsigned long *, unsigned long *, unsigned long *, - unsigned long *); +extern void docpuid(uint32_t idx, uint32_t *eax, uint32_t *ebx, uint32_t *ecx, uint32_t *edx); void print_module_title(WINDOW *win, const char *title); |