Mistake on this page?
Report an issue in GitHub or email us
Public Member Functions
ScopedRamExecutionLock Class Reference

RAII object for disabling, then restoring RAM execute never mode Usage: More...

#include <ScopedRamExecutionLock.h>

Inheritance diagram for ScopedRamExecutionLock:
NonCopyable< ScopedRamExecutionLock >

Public Member Functions

 ScopedRamExecutionLock ()
 Allow execution from RAM. More...
 
 ~ScopedRamExecutionLock ()
 Restore previous execution from RAM settings. More...
 

Detailed Description

RAII object for disabling, then restoring RAM execute never mode Usage:

void f() {
// some code here
{
ScopedRamExecutionLock make_ram_executable;
// Code in this block is allowed to call functions in RAM
}
// Execution from RAM is no longer allowed
}

Definition at line 41 of file ScopedRamExecutionLock.h.

Constructor & Destructor Documentation

Allow execution from RAM.

Increment the execute never lock to ensure code can be executed from RAM. This class uses RAII to allow execution from ram while it is in scope.

Definition at line 51 of file ScopedRamExecutionLock.h.

Restore previous execution from RAM settings.

Decrement the execute never lock to return execute from RAM to its prior state.

Definition at line 62 of file ScopedRamExecutionLock.h.

Important Information for this Arm website

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies. If you are not happy with the use of these cookies, please review our Cookie Policy to learn how they can be disabled. By disabling cookies, some features of the site will not work.