当前位置:网站首页>sbl_init.asm-适合在编辑模式下看
sbl_init.asm-适合在编辑模式下看
2022-08-04 05:30:00 【Btobk】
;******************************************************************************
;* *
;* Copyright 2018-2019 Texas Instruments Incorporated *
;* http://www.ti.com/ *
;* *
;* Redistribution and use in source and binary forms, with or without *
;* modification, are permitted provided that the following conditions *
;* are met: *
;* *
;* Redistributions of source code must retain the above copyright *
;* notice, this list of conditions and the following disclaimer. *
;* *
;* Redistributions in binary form must reproduce the above copyright *
;* notice, this list of conditions and the following disclaimer in *
;* the documentation and/or other materials provided with the *
;* distribution. *
;* *
;* Neither the name of Texas Instruments Incorporated nor the names *
;* of its contributors may be used to endorse or promote products *
;* derived from this software without specific prior written *
;* permission. *
;* *
;* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS *
;* “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT *
;* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR *
;* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT *
;* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, *
;* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT *
;* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, *
;* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY *
;* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT *
;* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE *
;* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. *
;* *
;******************************************************************************
;****************************************************************************
; Setup Reset Vectors
;****************************************************************************
下面的代码为arm模式
.arm
下面的代码属于ResetVectors段
.sect “.rstvectors”
.global _sblResetVectors
sbl程序入口,临时异象向量表
_sblResetVectors:
reset跳转到sblEntry
LDR pc, sblEntry ; Reset
临时异象向量表
B _sblLoopForever ; Undefined Instruction
B _sblLoopForever ; SVC call
B _sblLoopForever ; Prefetch abort
B _sblLoopForever ; Data abort
B _sblLoopForever ; Hypervisor
B _sblLoopForever ; IRQ
B _sblLoopForever ; FIQ
sblEntry表
sblEntry .long _sblEntry
;****************************************************************************
; SBL Entry
;****************************************************************************
.def _sblEntry
.ref _c_int00
.ref SBL_init_profile
.ref _sblTcmEn
_c_int00_addr .long _c_int00
SBL_init_profile_addr .long SBL_init_profile
_sblTcmEnAddr .long _sblTcmEn
_sblEntry:
读取cupid,不为ti的就跳到_sblLoopForever进入死循环
MRC p15, #0, r1, c0, c0, #5
BFC r1, #8, #24
CMP r1, #0
BNE _sblLoopForever
设置临时对战地址_sblTestStackBase-#0xf
ADR r1, _sblTestStackBase
BIC r1, r1, #0xf
MOV sp, r1
获取sbl启动的时间点信息,看sbl快不快
LDR r1, SBL_init_profile_addr
BLX r1
开开当前核的atcm和btcm,告诉内存让他们可以被使用
LDR r1, _sblTcmEnAddr
BLX r1
LDR r1, _c_int00_addr
BLX r1
开始进行fpu,各模式stack初始化
_sblLoopForever:
WFI
B _sblLoopForever
_sblTestStackTop:
.space 64
_sblTestStackBase:
边栏推荐
- Copy攻城狮5分钟在线体验 MindIR 格式模型生成
- 光条中心提取方法总结(一)
- tensorRT教程——tensor RT OP理解(实现自定义层,搭建网络)
- 浅谈外挂常识和如何防御
- 动手学深度学习__张量
- 深度学习,“粮草”先行--浅谈数据集获取之道
- WARNING: sql version 9.2, server version 11.0. Some psql features might not work.
- 如何成长为高级工程师?
- [Copy Siege Lion Log] Flying Pulp Academy Intensive Learning 7-Day Punch Camp-Study Notes
- 剪映专业版字幕导出随笔
猜你喜欢

Pytorch语义分割理解

【Copy攻城狮日志】“一分钟”跑通MindSpore的LeNet模型

Copy攻城狮信手”粘“来 AI 对对联

target has libraries with conflicting names: libcrypto.a and libssl.a.

典型CCN网络——efficientNet(2019-Google-已开源)
![[Deep Learning 21-Day Learning Challenge] 3. Use a self-made dataset - Convolutional Neural Network (CNN) Weather Recognition](/img/d0/3b8549b9704278e8ec1df03a90f80e.png)
[Deep Learning 21-Day Learning Challenge] 3. Use a self-made dataset - Convolutional Neural Network (CNN) Weather Recognition

Qt日常学习

lstm pipeline 过程理解(输入输出)

Copy攻城狮的年度之“战”|回顾2020

TensorFlow2 study notes: 6. Overfitting and underfitting, and their mitigation solutions
随机推荐
空洞卷积
MFC 打开与保存点云PCD文件
动手学深度学习_线性回归
CSDN大礼包--高校圆桌派大礼包
ConnectionRefusedError: [Errno 111] Connection refused问题解决
度量学习(Metric learning)—— 基于分类损失函数(softmax、交叉熵、cosface、arcface)
动手学深度学习__张量
Machine Learning - Processing of Text Labels for Classification Problems (Feature Engineering)
Data reading in yolov3 (1)
Copy Siege Lions "sticky" to AI couplets
Copy攻城狮信手”粘“来 AI 对对联
[Go language entry notes] 13. Structure (struct)
[Deep Learning 21-Day Learning Challenge] 3. Use a self-made dataset - Convolutional Neural Network (CNN) Weather Recognition
MAE 论文《Masked Autoencoders Are Scalable Vision Learners》
Pytest常用插件
【论文阅读】Mining Cross-Image Semantics for Weakly Supervised Semantic Segmentation
TensorRT 5 初步认识
图像线性融合
How to get started with MOOSE platform - an example of how to run the official tutorial
[CV-Learning] Linear Classifier (SVM Basics)