commit | 10d11ddfcb52122db52ac9f15b4884f663e9915d | [log] [tgz] |
---|---|---|
author | Florian Mayer <fmayer@google.com> | Fri Apr 19 17:09:14 2024 -0700 |
committer | Florian Mayer <fmayer@google.com> | Fri Jun 07 17:11:35 2024 -0700 |
tree | df72b4a94b888109c6f93454a81cabc47e423ec4 | |
parent | e78370e5f80b26d2f9035e2ed24fb1b25ea064e6 [diff] [blame] |
[MTE] allocate ring buffer for stack history Test: atest memtag_stack_dlopen_test Bug: 309446520 Change-Id: Ibf477bcfb832c5eba0244e86cdac5517f054eb49
diff --git a/tests/mte_utils.h b/tests/mte_utils.h index 6e8385c..020faec 100644 --- a/tests/mte_utils.h +++ b/tests/mte_utils.h
@@ -40,4 +40,10 @@ return p == p_cpy; } +static void* mte_tls() { + void** dst; + __asm__("mrs %0, TPIDR_EL0" : "=r"(dst) :); + return dst[-3]; +} + #endif