--- zzzz-none-000/linux-2.6.19.2/include/asm-mips/div64.h 2007-01-10 19:10:37.000000000 +0000 +++ davinci-8020-5505/linux-2.6.19.2/include/asm-mips/div64.h 2007-01-11 07:38:19.000000000 +0000 @@ -83,6 +83,27 @@ #if (_MIPS_SZLONG == 64) /* + * Don't use this one in new code + */ +#define do_div64_32(res, high, low, base) ({ \ + unsigned int __quot, __mod; \ + unsigned long __div; \ + unsigned int __low, __high, __base; \ + \ + __high = (high); \ + __low = (low); \ + __div = __high; \ + __div = __div << 32 | __low; \ + __base = (base); \ + \ + __mod = __div % __base; \ + __div = __div / __base; \ + \ + __quot = __div; \ + (res) = __quot; \ + __mod; }) + +/* * Hey, we're already 64-bit, no * need to play games.. */