Go to the documentation of this file.
9 #include <linux/module.h>
11 #include <linux/sched.h>
12 #include <asm/current.h>
15 #include <asm/processor.h>
19 #ifdef CONFIG_ISA_DUAL_ISSUE
26 "cmpz %0 || addi %0, #-1 \n\t"
27 "bc 2f || cmpz %0 \n\t"
28 "bc 2f || addi %0, #-1 \n\t"
29 "cmpz %0 || addi %0, #-1 \n\t"
30 "bc 2f || cmpz %0 \n\t"
31 "bnc 1b || addi %0, #-1 \n\t"
61 #if defined(CONFIG_ISA_M32R2) && defined(CONFIG_ISA_DSP_LEVEL2)
74 "mulwhi %0, %1 ; a0 \n\t"
75 "mulwu1 %0, %1 ; a1 \n\t"
76 "sadd ; a0 += (a1 >> 16) \n\t"
83 #elif defined(CONFIG_ISA_M32R2) || defined(CONFIG_ISA_M32R)
90 "and3 r4, %0, #0xffff \n\t"
91 "and3 r5, %1, #0xffff \n\t"
93 "srl3 r6, %0, #16 \n\t"
97 "and3 r5, %0, #0xffff \n\t"
98 "srl3 r6, %1, #16 \n\t"
101 "srl3 r5, %0, #16 \n\t"
111 #error unknown isa configuration