patch-2.4.0-test3 linux/include/asm-mips/param.h
Next file: linux/include/asm-mips/pgtable.h
Previous file: linux/include/asm-mips/offset.h
Back to the patch index
Back to the overall index
- Lines: 19
- Date:
Sun Jul 9 22:18:15 2000
- Orig file:
v2.4.0-test2/linux/include/asm-mips/param.h
- Orig date:
Sat Feb 26 22:31:56 2000
diff -u --recursive --new-file v2.4.0-test2/linux/include/asm-mips/param.h linux/include/asm-mips/param.h
@@ -20,12 +20,12 @@
*/
# define QUOTIENT ((1UL << (32 - LOG_2_HZ)) * 100)
# define HZ_TO_STD(a) \
- ({ int __res; \
- __asm__( \
- "multu\t%0,%2\n\t" \
- "mfhi\t%0" \
- : "=r" (__res): "0" (a), "r" (QUOTIENT)); \
- __res;})
+ ({ unsigned int __res; \
+ unsigned long lo; \
+ __asm__("multu\t%2,%3\n\t" \
+ :"=h" (__res), "=l" (lo) \
+ :"r" (a),"r" (QUOTIENT)); \
+ (__typeof__(a)) __res;})
#else
# define HZ 100
# define HZ_TO_STD(a) (a)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)