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

[arch][arm] Fix execution of TLBIALL instructions #235

Merged
merged 1 commit into from Sep 19, 2018
Merged

[arch][arm] Fix execution of TLBIALL instructions #235

merged 1 commit into from Sep 19, 2018

Conversation

ghost
Copy link

@ghost ghost commented Sep 15, 2018

After a TLBI instruction the right thing to do is to execute DSB followed by ISB. DSB ensures that the TLBI is seen by all observers of the system and ISB ensures that the DSB has finished before continuing.

Also, the value in <Rt> is ignored for a TLBIALL. It isn't needed to load 0 to r12 and then use r12 in the instruction. In order not to cause confusion it is better to not load anything to r12.

@ghost
Copy link
Author

ghost commented Sep 15, 2018

This is the counterpart of #234 for arm32.

After a TLBI instruction the right thing to do is to execute DSB
followed by ISB. DSB ensures that the TLBI is seen by all observers of
the system and ISB ensures that the DSB has finished before continuing.

Also, the value in <Rt> is ignored for a TLBIALL. It isn't needed to
load 0 to r12 and then use r12 in the instruction. In order not to cause
confusion it is better to not load anything to r12.

Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
@ghost ghost changed the title [arch][arm] Fix execution of TLIBALL instructions [arch][arm] Fix execution of TLBIALL instructions Sep 15, 2018
@travisg travisg merged commit 2680c37 into littlekernel:master Sep 19, 2018
@travisg
Copy link
Member

travisg commented Sep 19, 2018

looks good, thanks!

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

Successfully merging this pull request may close these issues.

None yet

1 participant