| From: | John Naylor <john(dot)naylor(at)postgresql(dot)org> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: Refactor handling of x86 CPUID instructions |
| Date: | 2026-03-25 05:33:26 |
| Message-ID: | E1w5Grt-001LRO-0N@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
Refactor handling of x86 CPUID instructions
Introduce two helpers for CPUID, pg_cpuid and pg_cpuid_subleaf that wrap
the platform specific __get_cpuid/__cpuid and __get_cpuid_count/__cpuidex
functions.
Additionally, use macros to specify registers names (e.g. EAX) for clarity,
instead of numeric integers into the result array.
Author: Lukas Fittl <lukas(at)fittl(dot)com>
Suggested-By: John Naylor <john(dot)naylor(at)postgresql(dot)org>
Discussion: https://postgr.es/m/CANWCAZZ+Crjt5za9YmFsURRMDW7M4T2mutDezd_3s1gTLnrzGQ@mail.gmail.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/be6a7494d2e387d1f5b7a5dcc6c2afcb403188d6
Modified Files
--------------
src/port/pg_cpu_x86.c | 76 ++++++++++++++++++++++++++++++++++-----------------
1 file changed, 51 insertions(+), 25 deletions(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Amit Kapila | 2026-03-25 05:58:20 | pgsql: pg_createsubscriber: Add -l/--logdir option to redirect output t |
| Previous Message | Michael Paquier | 2026-03-24 23:58:22 | pgsql: Remove isolation test lock-stats |