Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lesson 6 Screen01 InitialiseFrameBuffer function should use r4 to store fbInfoAddr #9

Open
yeqingyan opened this issue Jun 17, 2015 · 1 comment

Comments

@yeqingyan
Copy link

In lesson 6, the InitialiseFrameBuffer function using r3 to store fbInfoAddr,

fbInfoAddr .req r3

but then r3 will be used by function MailboxRead/MailboxWrite, that make the function InitialiseFrameBuffer return the wrong pointer:

mov result,fbInfoAddr
pop {pc}
.unreq result
.unreq fbInfoAddr

I followed the code in lesson 6, the image will not show due to this reason. The solution code fixed it by using r4 to store the fbInfoAddr, and push/pop r4 with pc register.

@cmurphy
Copy link

cmurphy commented Nov 9, 2015

++ I ran into this too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants