Skip to content
Snippets Groups Projects
Commit 961a3b05 authored by iliya's avatar iliya
Browse files

feat: added magic values (user / supervisor) for CONTROL register when calling switch_mode

parent d007212b
No related branches found
No related tags found
No related merge requests found
......@@ -8,6 +8,9 @@
#ifndef MACRO_H_
#define MACRO_H_
#define SUPERVISOR_CONTROL_VALUE 0
#define USER_CONTROL_VALUE 3
// Region enable bit
#define REGION_ENABLE (0x1 << 0)
......@@ -26,6 +29,4 @@
#define RW_PRIV (0x1 << 24)
#define RW_PRIV_R_UNPRIV (0x2 << 24)
#endif /* MACRO_H_ */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment