ARMv8-M安全与非安全状态下内存映射及编程模型.pptx

ARMv8-M安全与非安全状态下内存映射及编程模型.pptx

ASimplifiedARMv8-MUseCaseI/ODriverUser

ApplicationNon-securestateSecureStateFirmwareCodeConstDataFunctionCallsFunctionCallsFunctionCallsTrustZoneenabledMicrocontrollerOnlyFunctionCallstoSecurepartarepossible

Non-securepartcannot

accessSecureresources

SecurepartmayaccesseverythingSecureandNon-securepartsmayimplementindependenttimeschedulingUserProjectFirmwareProjectStartSystemStartCommunication

Stack

ARMv8MProgrammersModel–MemoryMapNon-securememoryviewisidenticalwithCortex-MBranchestofixedmemorylocationsaccessSecurefirmware

SecurememoryisinvisibleNon-SecurestateFlashRAMPeripheralsOff-chipmemoryOff-chipperipheralsSystemControlandDebugROMTables0x000000000xFFFFFFFF0x600000000x400000000ectortablefor

Non-securehandlersITM/DWT/FBPSysTickNVICSCBMPUDebug

ARMv8MProgrammersModel–MemoryMapNon-SecureFlashSecureFlashNon-secureRAMSecureRAMNon-secureperipheralsSecureperipheralsOff-chipmemoryOff-chipperipheralsSystemControlandDebugROMTablesITM/DWT/FBPSecureSysTickNVICSecureSCBSecureMPUSecureAttributionUnitDebugNon-SecureSysTickAliasNon-SecureSCBAliasNon-SecureMPUAliasSecurestateVectortablefor

SecurehandlersSecurememoryviewshowsadditionalFlash,RAM,andPeripherals.AccesstoallregionsispossibleinSecurestateRegionscanbeconfiguredinSecurestateusingthe

SecureAttributionUnit0x000000000xFFFFFFFF0x600000000x400000000HandlerModeThreadModeARMv8MProgrammersModel–RegisterR0R1R2R3R4R5R6R7R8R9R10R11R12SP(R13)LR(R14)PC(R15)PSRNon-securestateSecurestatePSP_NSPSPLIM_NSMSP_NSMSPLIM_NSHandlerModeThreadModePSP_SPSPLIM_SMSP_SMSPLIM_SPRIMASK_NSFAULTMASK_NSBASEPRI_NSPRIMASK_SFAULTMASK_SBASEPRI_SCONTROL_NSCONTROL_SGeneralpurpose

registers

VisibleinallstatesSeparatestacksforSecureandNon-securestatewith

hardwarestacklimitcheckNon-secureaccesstointerruptcontrolregist

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档