shithub: riscv

Download patch

ref: 54562b6ac2f88c6a29264bb20e1fa5292f6ee8b9
parent: 97a2f14b1c7960713ba2f7b284a6055cda8e101e
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Wed May 1 05:35:51 EDT 2019

kernel: insert memory barrier in the scheduler before setting up->mach = nil

we have to ensure that all stores saving the process state
have completed before setting up->mach = nil in the scheduler.
otherwise, another cpu could observe up->mach == nil while
the stores such as the processes p->sched label have not finnished.