Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Does thistransition_to_single_core_main work on the rpi4?#140

Discussion options

I guess this is more of a question than an issue but I've found that the rpi4 doesnt produce the expected result when using atomic operations.

So, I have 2 atomic operations lined up one after the other. I'd have expected an Ok(1) after the compare and swap.

info!("kernel_state: {:?}", state::state_manager().0.load(Ordering::Acquire));info!("compare and swap {:?}", state::state_manager().0.compare_exchange(                state::StateManager::INIT,                state::StateManager::SINGLE_CORE_MAIN,Ordering::Acquire,Ordering::Relaxed,));

but instead I get an error.

[    0.481485] kernel_state: 0[    0.484178] compare and swap Err(1)

Question:
The MMU is disabled. I'm not familiar with atomic instructions but for atomic operations to work on the rpi4, must the MMU be enabled. Is this correct? I was going to test this by enabling the MMU but just wanted to check before I head down this road.

Note:

You must be logged in to vote

MMU must be enabled.

See:#132

Replies: 2 comments

Comment options

MMU must be enabled.

See:#132

You must be logged in to vote
0 replies
Answer selected byandre-richter
Comment options

Thank you. I must say - (for an opensource tutorial) the turn around time on a response here is awesome (something I wish more projects emulated).

Thanks again 👍

You must be logged in to vote
0 replies
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Labels
None yet
2 participants
@nihalpasham@andre-richter
Converted from issue

This discussion was converted from issue #137 on January 09, 2022 16:12.


[8]ページ先頭

©2009-2025 Movatter.jp