如题:

__enter_kernel的调用点:

http://lxr.oss.org.cn/source/arch/arm/boot/compressed/head.S?a=arm#L523

__enter_kernel的位置:

http://lxr.oss.org.cn/source/arch/arm/boot/compressed/head.S?a=arm#L1281

问题的产生:

http://www.21qa.net/questions/680/680 一问题中,定位到r2传值失败.

进一步分析,得出:

__enter_kernel跳转进入decompressed kernel前,r2的值是正确的.

但到了arch/arm/kernel/head.S时,r2的值就错误了,这中间发生了嘛???

在__enter_kernel跳转前,r2的最后一次赋值的位置是:

http://lxr.oss.org.cn/source/arch/arm/boot/compressed/head.S?a=arm#L503

谁给解释解释?

系统消息 若觉得内容不错,请点击左上角的"赞"图标,以优化网站的内容呈现。 另外,请及时验证注册邮箱,否则收不到21QA发出的红包。 官方Q群:250203055

asked 21 Sep '14, 16:04

perr's gravatar image

perr
406364151

编辑于 21 Sep '14, 16:04


自己调过去了

犯了双重错误:

1.见 http://www.21qa.net/questions/680/680

2.自己调试汇编用的打印函数会破坏r0-r3....着实2了一把

系统消息 若觉得内容不错,请点击左上角的"赞"图标,以优化网站的内容呈现。 另外,请及时验证注册邮箱,否则收不到21QA发出的红包。 官方Q群:250203055
permanent link

answered 21 Sep '14, 19:41

perr's gravatar image

perr
406364151

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link: [text](http://url.com/ "title")
  • image: ![alt](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×85
×12
×1

question asked: 21 Sep '14, 16:04

question was seen: 5,269 times

last updated: 21 Sep '14, 19:41

powered by O*S*Q*A

粤ICP备14040061号-1