From: Jonas Bonn Date: Wed, 18 Apr 2012 10:23:39 +0000 (+0200) Subject: openrisc: use scratch regs in atomic syscall X-Git-Tag: v3.5-rc1~175^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=207e715ff17b42e022df107210dc8c736a703eb3;p=pandora-kernel.git 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: Davd Hennerström Signed-off-by: Jonas Bonn --- Reading git-diff-tree failed