Skip to content

Commit

Permalink
boards: config: nrf: appid: use storage perm policy
Browse files Browse the repository at this point in the history
  • Loading branch information
bradjc committed Jun 11, 2024
1 parent b9f9361 commit e8bd1d8
Showing 1 changed file with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,21 @@ pub unsafe fn main() {
let checker = components::appid::checker::ProcessCheckerMachineComponent::new(checking_policy)
.finalize(components::process_checker_machine_component_static!());

//--------------------------------------------------------------------------
// STORAGE PERMISSIONS
//--------------------------------------------------------------------------

let storage_permissions_policy =
components::storage_permissions::null::StoragePermissionsNullComponent::new().finalize(
components::storage_permissions_null_component_static!(
nrf52840::chip::NRF52<Nrf52840DefaultPeripherals>
),
);

//--------------------------------------------------------------------------
// PROCESS LOADING
//--------------------------------------------------------------------------

// These symbols are defined in the linker script.
extern "C" {
/// Beginning of the ROM region containing app images.
Expand Down Expand Up @@ -311,6 +326,7 @@ pub unsafe fn main() {
core::ptr::addr_of!(_eappmem) as usize - core::ptr::addr_of!(_sappmem) as usize,
),
&FAULT_RESPONSE,
storage_permissions_policy,
assigner,
&process_management_capability
)
Expand Down

0 comments on commit e8bd1d8

Please sign in to comment.