]> git.ipfire.org Git - thirdparty/grub.git/commit
lib/hwfeatures-gcry: Introduce functions to manage hardware features
authorGary Lin <glin@suse.com>
Wed, 22 Oct 2025 01:28:52 +0000 (09:28 +0800)
committerDaniel Kiper <daniel.kiper@oracle.com>
Thu, 23 Oct 2025 17:15:00 +0000 (19:15 +0200)
commit06a5b88bafa0fbd6313125ffe956ad2b0f7dde76
treef5e6b1502012530a6dd8bf483a4f481aa9bca03c
parentd01abd71311a0e9f9f0e59bc0d157806d5554541
lib/hwfeatures-gcry: Introduce functions to manage hardware features

This commit introduces the generic functions to manage the hardware
features in libgcrypt. These functions are stubs for future
platform-specific implementations:
  - grub_gcry_hwf_enabled() returns __gcry_use_hwf which indicates if
    the hardware features are enabled specifically by grub_enable_gcry_hwf(),
  - grub_enable_gcry_hwf() invokes the architecture specific enablement
    functions and sets __gcry_use_hwf to true,
  - grub_reset_gcry_hwf() invokes the architecture specific reset
    functions and sets __gcry_use_hwf to false.

Signed-off-by: Gary Lin <glin@suse.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
Makefile.util.def
grub-core/Makefile.core.def
grub-core/lib/hwfeatures-gcry.c [new file with mode: 0644]
include/grub/hwfeatures-gcry.h [new file with mode: 0644]