Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 207e715f authored by Jonas Bonn's avatar Jonas Bonn
Browse files

openrisc: use scratch regs in atomic syscall



The function sys_or1k_atomic was using call-saved registers without
restoring their value before returning.  This is a faux pas: either
we need to restore their values or use scratch regs; the latter is
less code so that's the route this patch takes.

Thanks to David Hennerström for doing most of the heavy-lifting in
tracking this one down.

Reported-by: default avatarDavd Hennerström <david.hennerstrom@aacmicrotec.com>
Signed-off-by: default avatarJonas Bonn <jonas@southpole.se>
parent 7b903e6c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment