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

RAII object for disabling, then restoring ROM write never mode Usage: More...

#include <ScopedRomWriteLock.h>

Inheritance diagram for ScopedRomWriteLock:
NonCopyable< ScopedRomWriteLock >

Public Member Functions

 ScopedRomWriteLock ()
 Allow writing to ROM. More...
 
 ~ScopedRomWriteLock ()
 Restore previous write to ROM settings. More...
 

Detailed Description

RAII object for disabling, then restoring ROM write never mode Usage:

void f() {
// some code here
{
ScopedRomWriteLock make_ram_executable;
// Code in this block is allowed to write to ROM
}
// Writing to ROM is no longer allowed
}

Definition at line 42 of file ScopedRomWriteLock.h.

Constructor & Destructor Documentation

Allow writing to ROM.

Increment the ROM write lock to ensure code can write to ROM. This class uses RAII to allow writing to ROM while it is in scope.

Definition at line 52 of file ScopedRomWriteLock.h.

Restore previous write to ROM settings.

Decrement the ROM write lock to return ROM write to its prior state.

Definition at line 63 of file ScopedRomWriteLock.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.