Skip to content

Kernel: Use SeqCst for ARE_CPU_LOCALS_INIT#489

Open
roblabla wants to merge 1 commit intosunriseos:masterfrom
roblabla:bugfix-arecpulocalsinit-atomic
Open

Kernel: Use SeqCst for ARE_CPU_LOCALS_INIT#489
roblabla wants to merge 1 commit intosunriseos:masterfrom
roblabla:bugfix-arecpulocalsinit-atomic

Conversation

@roblabla
Copy link
Copy Markdown
Member

Relaxed is 100% broken in SMP context here.

@roblabla
Copy link
Copy Markdown
Member Author

From @Orycterope on discord

Since we set the atomic to true before we start the other cores, shouldn't Relaxed work?

I'm not 100% sure. I feel like it should work in practice, but I'm very unclear on whether this is considered legal or not.

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.

2 participants