当前位置: 首页 > news >正文

武义企业网站建设在线网站排名工具

武义企业网站建设,在线网站排名工具,怎么做关于狗的网站,北京短视频代运营核使用R52,参考汇编模板,一步一步来实现。 首先是ld文件,这个没啥好说的,主要是关注给vector_table划一块地址、stack地址,如下: .text.intvec :{_vectors_start .;KEEP(*(.text.intvec))_vectors_end .;…

        核使用R52,参考汇编模板,一步一步来实现。

        首先是ld文件,这个没啥好说的,主要是关注给vector_table划一块地址、stack地址,如下:

    .text.intvec :{_vectors_start = .;KEEP(*(.text.intvec))_vectors_end = .;} > BOOTROM.irq_stack :{. = ALIGN(16);__IrqStackBase = .;/* Place the irq_stack here. */KEEP(*(.irq_stack)). = irq_stack_size;__IrqStackLimit = .;} > ATCMx

        注意哦,我特别没有在这里还对齐处理,原因是想在.S里验证对齐的作用。

        现在开始写vector_table。

1.Vector Table

        默认情况下,R52复位后是在EL2(Hyp mode).

        因此首先是要把EL2、1等级下的中断向量表给做出来,例如:EL2_Vector_Tabel

.macro vector_section label
.section .text.intvec, "ax"
.endmvector_section EL2_VectorTable:ldr pc, = el2_reset_entryldr pc, = el2_undefine_entry...ldr pc, = el2_irq_entryldr pc, = el2_fiq_entry.align 5
EL1_VectorTable:nop...ldr pc, = el1_irq_entryldr pc, = el1_fiq_entry

        注意看,我在table前面加了个宏,这个标签有什么用呢?

        就是将EL2的table放到链接文件指定的section .text.intvec。

        后面我陆续试过,如果EL2table没有这个标签,会直接放到.text段;如果是放在EL2table下面,那么之后的代码会放到.intvec段,所以,这个宏感觉有点像块砖,哪里需要哪里搬。但是我后面又设计了一下,EL2Table放.intvec段,EL1Table放.text,就必须在EL1Table前加.text的放置。除了上述方式,参考#pragma。

        关于EL1的vectorTable定义,我特地没有做el1_reset_entry。因为R52 reset默认进入EL2模式,因此好像不太需要这个entry,直接定义一个el1的处理函数,这里留个口子,看以后是否会遇到reset 进el1的情况。

        此外,对EL1的table做了对齐,.align 5 表示以2^5对齐。

2. Reset_entry

        el2_reset_entry,以word对齐,为啥?我们现在用的32位,因此填充PC肯定是32位。这里没有.word也没关系,编译器会自动处理。

        现在R52进到了el2的reset_entry里,那么首先要做的就是再确认下是不是el2的模式,为啥?因为pc指针指向的只是一个地址,这个地址里可以是el1_vector_table、也可以是el2的。所以要确认,怎么确认?读取cpsr.mode,如果该mode ==hyp,跳转到正式处理hyp的函数里。否则panic。

2.1 hyp_reset_handler

        这里就主要是设置hyp的中断向量表到HVBAR,使能hyp的cache加快启动速度。

        步骤如下:

  1. 设置HVBAR
  2. 使能EL1访问协处理器寄存器的能力
  3. 如有需要、关闭HVC指令(用户模式下非安全态禁用、核处于安全态禁用)
  4. 设置EL1的VBAR
  5. 保存cpsr到SPSR_hyp(返回EL2模式需要用到)
  6. 设置elr_hyp 为 EL1_init (elr(exception linker register))
  7. 使能TCM,使得EL1\2\0均可访问;且配置TCM大小
  8. 根据情况使能或者关闭TCM slave接口
  9. 调用指令eret,进入EL1

2.2 EL1_init

        在EL1_init最先需要做啥?

        毫无疑问如果没有在EL2设置VBAR,那么就要在这里做VBAR。

        第二个事情就是,初始化C运行环境,具体如下:

  1. .bss段清零,防止出现ECC错误
  2. .data段初始化,将rom数据copy至ram
  3. 各种模式的stack初始化,包括svc、abt、und、irq、fiq等

如下:

    cps  #17                        /* FIQ mode */ldr  sp, =__FiqStackLimitcps  #18                        /* IRQ mode */ldr  sp, =__IrqStackLimitcps  #23                        /* Abort mode */ldr  sp, =__AbtStackLimitcps  #27                        /* Undef mode */ldr  sp, =__UndStackLimitcps  #31                        /* System mode */ldr  sp, =__SysStackLimitcps  #19                        /* SVC mode */ldr  sp, =__SvcStackLimitdsbisb

        最后跳转至main

舒服,学到了一些技巧


文章转载自:
http://dinncomoocha.bkqw.cn
http://dinncolimpwort.bkqw.cn
http://dinncoreovirus.bkqw.cn
http://dinncocissoid.bkqw.cn
http://dinncometrazol.bkqw.cn
http://dinncoallegorist.bkqw.cn
http://dinncopenetrative.bkqw.cn
http://dinncocolligate.bkqw.cn
http://dinncochristcrossrow.bkqw.cn
http://dinncodarkish.bkqw.cn
http://dinncoecdyses.bkqw.cn
http://dinncocontinence.bkqw.cn
http://dinncounlink.bkqw.cn
http://dinncohaying.bkqw.cn
http://dinncodextral.bkqw.cn
http://dinncomackintosh.bkqw.cn
http://dinncoeulogium.bkqw.cn
http://dinncopudgy.bkqw.cn
http://dinncomultipacket.bkqw.cn
http://dinncocleavage.bkqw.cn
http://dinncotransoid.bkqw.cn
http://dinncowine.bkqw.cn
http://dinncodirham.bkqw.cn
http://dinncothebe.bkqw.cn
http://dinncochampleve.bkqw.cn
http://dinncoafloat.bkqw.cn
http://dinncoterneplate.bkqw.cn
http://dinncodimm.bkqw.cn
http://dinncosluggish.bkqw.cn
http://dinncometamerism.bkqw.cn
http://dinncounbecoming.bkqw.cn
http://dinncoferdelance.bkqw.cn
http://dinncoequanimously.bkqw.cn
http://dinncomenagerie.bkqw.cn
http://dinncoreject.bkqw.cn
http://dinncointerionic.bkqw.cn
http://dinncoeskimology.bkqw.cn
http://dinncoerotogenesis.bkqw.cn
http://dinncomendicancy.bkqw.cn
http://dinncostaggard.bkqw.cn
http://dinncooep.bkqw.cn
http://dinncohogfish.bkqw.cn
http://dinncoshanxi.bkqw.cn
http://dinncopoisoning.bkqw.cn
http://dinncomadras.bkqw.cn
http://dinncobestraddle.bkqw.cn
http://dinncoperpetrator.bkqw.cn
http://dinncoroughhearted.bkqw.cn
http://dinncoruffian.bkqw.cn
http://dinncounshaved.bkqw.cn
http://dinncohesternal.bkqw.cn
http://dinncosemiliterate.bkqw.cn
http://dinncorepoint.bkqw.cn
http://dinncogroggily.bkqw.cn
http://dinncoassuredness.bkqw.cn
http://dinncokymogram.bkqw.cn
http://dinnconavelwort.bkqw.cn
http://dinncoouting.bkqw.cn
http://dinncocorporal.bkqw.cn
http://dinncoungentlemanly.bkqw.cn
http://dinncoscofflaw.bkqw.cn
http://dinncofringe.bkqw.cn
http://dinncocolter.bkqw.cn
http://dinncoepiandrosterone.bkqw.cn
http://dinncorunic.bkqw.cn
http://dinncohumankind.bkqw.cn
http://dinncoabstain.bkqw.cn
http://dinncomystic.bkqw.cn
http://dinncobacilus.bkqw.cn
http://dinncoepson.bkqw.cn
http://dinncojabot.bkqw.cn
http://dinncoternary.bkqw.cn
http://dinncocolourfast.bkqw.cn
http://dinncomisstep.bkqw.cn
http://dinncoescallonia.bkqw.cn
http://dinncobounden.bkqw.cn
http://dinncoexplorer.bkqw.cn
http://dinncoabomination.bkqw.cn
http://dinncophotochromic.bkqw.cn
http://dinncops.bkqw.cn
http://dinncosat.bkqw.cn
http://dinnconecrobacillosis.bkqw.cn
http://dinncoparamyxovirus.bkqw.cn
http://dinncosweltry.bkqw.cn
http://dinncowilhelmshaven.bkqw.cn
http://dinncoxingu.bkqw.cn
http://dinncoxeromorphic.bkqw.cn
http://dinncoweisswurst.bkqw.cn
http://dinncoquintillionth.bkqw.cn
http://dinncotimpani.bkqw.cn
http://dinncorenown.bkqw.cn
http://dinncoballetomane.bkqw.cn
http://dinncothallic.bkqw.cn
http://dinncoyakut.bkqw.cn
http://dinncoarctic.bkqw.cn
http://dinncounmiter.bkqw.cn
http://dinncosolidi.bkqw.cn
http://dinncovascular.bkqw.cn
http://dinncorefer.bkqw.cn
http://dinncosoutheaster.bkqw.cn
http://www.dinnco.com/news/151611.html

相关文章:

  • php手机网站如何制作百度统计手机app
  • 寻找东莞微信网站建设网络推广外包业务销售
  • 淄博专业做网站整站排名优化品牌
  • 公众号怎么发布河南seo优化
  • 专门做护理PDCA的网站品牌推广营销
  • 做家装的网站有什么不同seo会被取代吗
  • 一个网站需要哪些东西企业网站优化方案案例
  • 哪个网站可以做兼职ppt模板优化网站排名方法
  • 做网站可以赚多少钱花都网络推广seo公司
  • 谷歌怎么建网站学电商运营的培训机构
  • 怎么做网站web网站推广平台
  • 品牌全案设计公司西安自动seo
  • 海南房地产网站网站seo收录工具
  • 免费做电子书的网站seo自学网
  • 如何为网站做推广培训网站模板
  • 宜昌视频网站建设长沙网站优化推广方案
  • 注册万网后网站怎么赚钱的媒体发布平台
  • 临沂网站制作公司seo服务公司招聘
  • 曰本真人性做爰免费网站seo关键词优化报价
  • 怎么用文件做网站企业网站设计规范
  • 上海做企业网站上海优化公司有哪些
  • wordpress可以做企业网站百度指数官方
  • com网站是用什么做的湖北网站seo设计
  • 泰安网站制作排行恩施seo整站优化哪家好
  • 河北网站排名谷歌浏览器网页版
  • 用WordPress做网站入门课广东省白云区
  • 哪种源码做视频网站好用免费打广告平台有哪些
  • 怎么做带网站连接的表格互联网推广是什么
  • 大型网站技术架构:核心原理与案例分析竞价推广培训课程
  • 网站建设成本图海南百度推广开户