X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Fasm-mips%2Fdiv64.h;h=5f7dcf5452e75db5a35ea9b41d8ed0a67fd29d07;hb=6a77f38946aaee1cd85eeec6cf4229b204c15071;hp=7e7e2ea0d6cf9c47bc61585ad41d8fc8e17f7172;hpb=87fc8d1bb10cd459024a742c6a10961fefcef18f;p=linux-2.6.git diff --git a/include/asm-mips/div64.h b/include/asm-mips/div64.h index 7e7e2ea0d..5f7dcf545 100644 --- a/include/asm-mips/div64.h +++ b/include/asm-mips/div64.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2000 Maciej W. Rozycki + * Copyright (C) 2000, 2004 Maciej W. Rozycki * Copyright (C) 2003 Ralf Baechle * * This file is subject to the terms and conditions of the GNU General Public @@ -11,6 +11,8 @@ #if (_MIPS_SZLONG == 32) +#include + /* * No traps on overflows for any of these... */ @@ -67,7 +69,8 @@ if (__high) \ __asm__("divu $0, %z2, %z3" \ : "=h" (__upper), "=l" (__high) \ - : "Jr" (__high), "Jr" (__base)); \ + : "Jr" (__high), "Jr" (__base) \ + : GCC_REG_ACCUM); \ \ __mod = do_div64_32(__low, __upper, __low, __base); \ \