Index of Sfeng's Blob
ARM Hodgepodge of ARM A64 ADR and ADRP Cortex-M PendSV MPU SA and SAU Execution Priority Some Tips of Armv8-M Cache Virtually Indexed Physically Tagged RISC-V RVI AUIPC ...
ARM Hodgepodge of ARM A64 ADR and ADRP Cortex-M PendSV MPU SA and SAU Execution Priority Some Tips of Armv8-M Cache Virtually Indexed Physically Tagged RISC-V RVI AUIPC ...
Preface The Elliptic Curve Cryptography (ECC) is modern family of public-key cryptosystems, which is based on the algebraic structures of the elliptic curves over finite fields and on the diffic...
Background 首先来解决ROM Lib是啥?为什么要使用它?来看AI的解答: A “ROM library” refers to a collection of functions or code stored directly in a device’s Read-Only Memory (ROM), allowing applications to access th...
Background Linux在出错的时候,会把stack trace打出来,以帮助开发者快速定位到问题。而在绝大多数baremetal的程序中,甚至出了exception的时候很少有有用的打印信息,这里还是推荐把stack打出来,至于back trace可以人工硬解,当然也可以找一些工具来帮助解析,例如在OPTEE里就有script可以把地址转换为函数的调用(symbolize.py...
Preface 在嵌入式开发中,经常可以碰到一个SoC中不同系统间进行data的share,正好有同事需要一个example,就用这篇文章做个总结。 Share Flow 这里提到在不同processor间共享数据,一定是至少有一方有cache存在,并且share的双方不在一个cache coherent domain里。如果都没有cache,或者在一个cache domain里或...
Background Every link is controlled by a linker script. This script is written in the linker command language. The main purpose of the linker script is to describe how the sections in the input ...
Background 最近研究了把Armv8-M,实践了下从SPE启动把FreeRTOS跑在CM52的NSPE上,并且FreeRTOS的thread可以call SPE的secure service。过程中遇到了不少坑,记录一下,以备后查。 Some Tips Secure and Non-secure address space 查阅了不少关于Armv8 Cortex-M的实...
Background Cache的组织形式有多种,如VIVT,VIPT,PIPT等,每个都有各自的优缺点。本文主要研究下现代CPU中比较常用的VIPT。 VIPT的优点如下: 减少地址转换开销:VIPT缓存使用虚拟地址作为索引,物理地址作为标签。这意味着在进行缓存查找时,不需要进行虚拟地址到物理地址的转换,从而减少了地址转换的开销,提高了缓存查找的效率 减少cach...
Prface Cortex-M系列CPU中有handler mode和thread mode,然后又定义了privileged和un-privileged execution,Armv8-M中支持TZ又引入了secure state和non-secure state,再加上exception和interrupt,理解这些模式和了解它们的执行优先级,那么在Cortex-M系列芯片上开发项...
Preface SA和SAU是由Armv8-M的security extension引入的。是Cortex-M系列中实现TZ的重要组成部分。本文对它们做个初步介绍。 SA 关于SA,简单点讲就是把memory分成了下面几种type: Non-secure 在Arm Cortex-A系列里,non-secure的resource是其他所有状态下都可以访问的。然而在Corete...