From: Benjamin Herrenschmidt Date: Fri, 21 Dec 2007 04:39:22 +0000 (+1100) Subject: [POWERPC] 4xx: Improve support for 4xx indirect DCRs X-Git-Tag: v2.6.25-rc1~1131^2~195 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0e6140a56f2878816ecf9db50f40133d25d987e4;p=pandora-kernel.git [POWERPC] 4xx: Improve support for 4xx indirect DCRs Accessing indirect DCRs is done via a pair of address/data DCRs. Such accesses are thus inherently racy, vs. interrupts, preemption and possibly SMP if 4xx SMP cores are ever used. This updates the mfdcri/mtdcri macros in dcr-native.h (which were so far unused) to use a spinlock. In addition, add some common definitions to a new dcr-regs.h file. Signed-off-by: Benjamin Herrenschmidt Signed-off-by: Josh Boyer --- Reading git-diff-tree failed