diff options
author | Patrick Rudolph <patrick.rudolph@9elements.com> | 2023-09-30 15:12:17 +0200 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2023-10-02 14:01:59 +0000 |
commit | 699b1c4a66084049531bc59a392052b4251da1e0 (patch) | |
tree | d87d4263568e2edde85b30f473f61a26863f0af2 /src/soc/nvidia | |
parent | 4c7e97b26a3492c5799edcfb3c3740870a6debf1 (diff) |
x86/include/arch/cpuid.h: Fix inline assembly
In the cpuid helper functions eax is always written to
by the cpuid instruction, so add it to the output clobbered list.
This prevents GCC from generating code with undefined behaviour
when the function is inlined.
Test: Verified that the generated assembly is sane and runtime
tests showed no "strange" behaviour when calling cpuid
functions.
Change-Id: I5dc0bb620184a355716b9c8d4206d55554b41ab9
Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/78192
Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Krystian Hebel <krystian.hebel@3mdeb.com>
Reviewed-by: Paul Menzel <paulepanter@mailbox.org>
Diffstat (limited to 'src/soc/nvidia')
0 files changed, 0 insertions, 0 deletions