[Lldb-commits] [lldb] [lldb][AArch64] Add Guarded Control Stack registers (PR #123720)
Omair Javaid via lldb-commits
lldb-commits at lists.llvm.org
Thu Jan 23 13:57:26 PST 2025
================
@@ -2,8 +2,8 @@
#include <sys/auxv.h>
#include <sys/prctl.h>
-#ifndef HWCAP2_GCS
-#define HWCAP2_GCS (1UL << 63)
+#ifndef HWCAP_GCS
+#define HWCAP_GCS (1UL << 32)
----------------
omjavaid wrote:
Apprently following entry is misleading "Support for GCS is reported to userspace via HWCAP_GCS in the aux vector AT_HWCAP2 entry." from https://docs.kernel.org/next/arch/arm64/gcs.html
https://github.com/torvalds/linux/blob/master/arch/arm64/include/uapi/asm/hwcap.h seems to have HWCAP_GCS (1UL << 32).
https://github.com/llvm/llvm-project/pull/123720
More information about the lldb-commits
mailing list