summaryrefslogtreecommitdiff
path: root/devdocs/gcc~13/arm-armv8-m-security-extensions.html
blob: 14c9eff9fbe05bb2ba784a896710dcad4bdf92b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<div class="subsection-level-extent" id="ARM-ARMv8-M-Security-Extensions"> <div class="nav-panel"> <p> Next: <a href="avr-built-in-functions" accesskey="n" rel="next">AVR Built-in Functions</a>, Previous: <a href="arm-floating-point-status-and-control-intrinsics" accesskey="p" rel="prev">ARM Floating Point Status and Control Intrinsics</a>, Up: <a href="target-builtins" accesskey="u" rel="up">Built-in Functions Specific to Particular Target Machines</a> [<a href="index#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="indices" title="Index" rel="index">Index</a>]</p> </div>  <h1 class="subsection" id="ARM-ARMv8-M-Security-Extensions-1"><span>6.60.9 ARM ARMv8-M Security Extensions<a class="copiable-link" href="#ARM-ARMv8-M-Security-Extensions-1"> ¶</a></span></h1> <p>GCC implements the ARMv8-M Security Extensions as described in the ARMv8-M Security Extensions: Requirements on Development Tools Engineering Specification, which can be found at <a class="uref" href="https://developer.arm.com/documentation/ecm0359818/latest/">https://developer.arm.com/documentation/ecm0359818/latest/</a>. </p> <p>As part of the Security Extensions GCC implements two new function attributes: <code class="code">cmse_nonsecure_entry</code> and <code class="code">cmse_nonsecure_call</code>. </p> <p>As part of the Security Extensions GCC implements the intrinsics below. FPTR is used here to mean any function pointer type. </p> <div class="example smallexample"> <pre class="example-preformatted" data-language="cpp">cmse_address_info_t cmse_TT (void *);
cmse_address_info_t cmse_TT_fptr (FPTR);
cmse_address_info_t cmse_TTT (void *);
cmse_address_info_t cmse_TTT_fptr (FPTR);
cmse_address_info_t cmse_TTA (void *);
cmse_address_info_t cmse_TTA_fptr (FPTR);
cmse_address_info_t cmse_TTAT (void *);
cmse_address_info_t cmse_TTAT_fptr (FPTR);
void * cmse_check_address_range (void *, size_t, int);
typeof(p) cmse_nsfptr_create (FPTR p);
intptr_t cmse_is_nsfptr (FPTR);
int cmse_nonsecure_caller (void);</pre>
</div> </div><div class="_attribution">
  <p class="_attribution-p">
    &copy; Free Software Foundation<br>Licensed under the GNU Free Documentation License, Version 1.3.<br>
    <a href="https://gcc.gnu.org/onlinedocs/gcc-13.1.0/gcc/ARM-ARMv8-M-Security-Extensions.html" class="_attribution-link">https://gcc.gnu.org/onlinedocs/gcc-13.1.0/gcc/ARM-ARMv8-M-Security-Extensions.html</a>
  </p>
</div>