TrustZoneBootloader Core

Description

TrustZone utilities.

Functions

void bl_fatal_assert_action (void)
bool bl_verify_ns_memory_access (const void *p, size_t s)

Function Documentation

void bl_fatal_assert_action ( void )

TrustZone fatal error handler.

This function triggers a soft-reset with the reset reason set to BOOTLOADER_RESET_REASON_TZ_FAULT.

bool bl_verify_ns_memory_access ( const void * p,
size_t s
)

Validate the non-secure pointers.

Validate if the address of the memory is actually non-secure as expected.

Parameters
p Pointer to the memory.
s Size of the memory to be validated.
Returns
True if the memory being accessed is from NS