提交 b9688310 编写于 作者: S Steven J. Hill 提交者: Ralf Baechle

MIPS: Whitespace cleanups and reformatting.

Signed-off-by: NSteven J. Hill <sjhill@mips.com>
Cc: linux-mips@linux-mips.org
Cc: Steven J. Hill <sjhill@mips.com>
Cc: Kevin Cernekee <cernekee@gmail.com>
Patchwork: https://patchwork.linux-mips.org/patch/4781/Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
上级 bc4f2975
...@@ -1142,17 +1142,21 @@ do { \ ...@@ -1142,17 +1142,21 @@ do { \
/* /*
* Macros to access the floating point coprocessor control registers * Macros to access the floating point coprocessor control registers
*/ */
#define read_32bit_cp1_register(source) \ #define read_32bit_cp1_register(source) \
({ int __res; \ ({ \
__asm__ __volatile__( \ int __res; \
".set\tpush\n\t" \ \
".set\treorder\n\t" \ __asm__ __volatile__( \
/* gas fails to assemble cfc1 for some archs (octeon).*/ \ " .set push \n" \
".set\tmips1\n\t" \ " .set reorder \n" \
"cfc1\t%0,"STR(source)"\n\t" \ " # gas fails to assemble cfc1 for some archs, \n" \
".set\tpop" \ " # like Octeon. \n" \
: "=r" (__res)); \ " .set mips1 \n" \
__res;}) " cfc1 %0,"STR(source)" \n" \
" .set pop \n" \
: "=r" (__res)); \
__res; \
})
#define rddsp(mask) \ #define rddsp(mask) \
({ \ ({ \
......
...@@ -518,7 +518,7 @@ static inline int simulate_ll(struct pt_regs *regs, unsigned int opcode) ...@@ -518,7 +518,7 @@ static inline int simulate_ll(struct pt_regs *regs, unsigned int opcode)
offset >>= 16; offset >>= 16;
vaddr = (unsigned long __user *) vaddr = (unsigned long __user *)
((unsigned long)(regs->regs[(opcode & BASE) >> 21]) + offset); ((unsigned long)(regs->regs[(opcode & BASE) >> 21]) + offset);
if ((unsigned long)vaddr & 3) if ((unsigned long)vaddr & 3)
return SIGBUS; return SIGBUS;
...@@ -558,7 +558,7 @@ static inline int simulate_sc(struct pt_regs *regs, unsigned int opcode) ...@@ -558,7 +558,7 @@ static inline int simulate_sc(struct pt_regs *regs, unsigned int opcode)
offset >>= 16; offset >>= 16;
vaddr = (unsigned long __user *) vaddr = (unsigned long __user *)
((unsigned long)(regs->regs[(opcode & BASE) >> 21]) + offset); ((unsigned long)(regs->regs[(opcode & BASE) >> 21]) + offset);
reg = (opcode & RT) >> 16; reg = (opcode & RT) >> 16;
if ((unsigned long)vaddr & 3) if ((unsigned long)vaddr & 3)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册