RTEMS CPU Kit with SuperCore
|
#include <rtems/score/nios2-utility.h>
Functions | |
int | _Nios2_MPU_Get_disabled_region_index (const Nios2_MPU_Configuration *config, bool data, int begin, int end) |
Searches the region table part for a disabled region. More... | |
bool | _Nios2_MPU_Add_region (const Nios2_MPU_Configuration *config, const Nios2_MPU_Region_descriptor *desc, bool force) |
Adds a region according to region descriptor desc. More... | |
bool _Nios2_MPU_Add_region | ( | const Nios2_MPU_Configuration * | config, |
const Nios2_MPU_Region_descriptor * | desc, | ||
bool | force | ||
) |
Adds a region according to region descriptor desc.
If force is true, then an enabled region will be overwritten.
true | Successful operation. |
false | Invalid region descriptor or region already in use. |
int _Nios2_MPU_Get_disabled_region_index | ( | const Nios2_MPU_Configuration * | config, |
bool | data, | ||
int | begin, | ||
int | end | ||
) |
Searches the region table part for a disabled region.
The table will be searched between indices begin and end. The end index is not part of the search range. If end is negative, then the region count will be used. Thus a begin of 0 and a end of -1 will specify the complete table.
-1 | No disabled region is available. |
other | Index of disabled region. |