ia64/linux-2.6.18-xen.hg

annotate arch/powerpc/math-emu/mtfsfi.c @ 854:950b9eb27661

usbback: fix urb interval value for interrupt urbs.

Signed-off-by: Noboru Iwamatsu <n_iwamatsu@jp.fujitsu.com>
author Keir Fraser <keir.fraser@citrix.com>
date Mon Apr 06 13:51:20 2009 +0100 (2009-04-06)
parents 831230e53067
children
rev   line source
ian@0 1 #include <linux/types.h>
ian@0 2 #include <linux/errno.h>
ian@0 3 #include <asm/uaccess.h>
ian@0 4
ian@0 5 #include "soft-fp.h"
ian@0 6
ian@0 7 int
ian@0 8 mtfsfi(unsigned int crfD, unsigned int IMM)
ian@0 9 {
ian@0 10 u32 mask = 0xf;
ian@0 11
ian@0 12 if (!crfD)
ian@0 13 mask = 9;
ian@0 14
ian@0 15 __FPU_FPSCR &= ~(mask << ((7 - crfD) << 2));
ian@0 16 __FPU_FPSCR |= (IMM & 0xf) << ((7 - crfD) << 2);
ian@0 17
ian@0 18 #ifdef DEBUG
ian@0 19 printk("%s: %d %x: %08lx\n", __FUNCTION__, crfD, IMM, __FPU_FPSCR);
ian@0 20 #endif
ian@0 21
ian@0 22 return 0;
ian@0 23 }