日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > linux >内容正文

linux

arm linux head.s,arm-linux head.S 源代码分析

發布時間:2024/7/23 linux 35 豆豆
生活随笔 收集整理的這篇文章主要介紹了 arm linux head.s,arm-linux head.S 源代码分析 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

arm-linux head.S 源代碼分析

arm-linux head.S 源代碼分析

這是ARM-Linux運行的第一個文件,這些代碼是一個比較獨立的代碼包裹器。其作用就是解壓Linux內核,并將PC指針跳到內核(vmlinux)的第一條指令。

Bootloader中傳入到Linux中的參數總共有三個,Linux中用到的是第二個和第三個。第二個參數是architecture id,第三個是taglist的地址。Architecture id的arm芯片在Linux中一定要唯一。Taglist是bootload向Linux傳入的參數列表(詳細的解釋請參考《booting arm linux.pdf》)。

//程序的入口點

.section ".start", #alloc, #execinstr

/*

* sort out different calling conventions

*/

.align

start:

.type start,#function

.rept 8//重復8次下面的指令,也就是空出中斷向量表的位置

mov r0, r0//就是nop指令

.endr

b 1f

.word 0x016f2818 @ Magic numbers to help the loader

.word start @ absolute load/run zImage address

.word _edata @ zImage end address

1: mov r7, r1 @ save architecture ID

總結

以上是生活随笔為你收集整理的arm linux head.s,arm-linux head.S 源代码分析的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。