Subrata Banik 7f822a3368 libpayload/x86: Add x86-64 support to rdtsc()
This patch adds support for x86-64 to the rdtsc() function, allowing
it to correctly read the Time Stamp Counter (TSC) on both 32-bit and
64-bit x86 architectures.

BUG=b:242829490, b:351851626
TEST=Builds and boots on google/rex0 and google/rex64 systems and
manually verified correct TSC readings on x86-32 and x86-64 hardware.

Change-Id: I0afac3db2e82a245a37c2e5cf2302bf1dad62c01
Signed-off-by: Subrata Banik <subratabanik@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/83414
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Julius Werner <jwerner@chromium.org>
2024-07-11 15:27:30 +00:00
..
2021-04-07 10:58:04 +00:00
2024-02-22 21:18:39 +00:00
2020-09-21 16:20:57 +00:00
2024-03-15 10:09:43 +00:00
2022-03-09 02:18:21 +00:00
2021-06-18 04:38:33 +00:00
2011-07-07 22:29:53 +02:00
2020-09-21 16:20:57 +00:00
2020-10-26 06:57:06 +00:00
2024-03-15 10:09:43 +00:00