]> git.karo-electronics.de Git - karo-tx-linux.git/commit
m68k: handle presence of 64bit mul/div instructions cleanly
authorGreg Ungerer <gerg@uclinux.org>
Fri, 11 Nov 2011 05:13:08 +0000 (15:13 +1000)
committerGreg Ungerer <gerg@uclinux.org>
Thu, 24 Nov 2011 23:32:49 +0000 (09:32 +1000)
commit3c1ec79ce0cf3798c4292f6f4d1eb4fa5c8befe4
tree0c5a3579fec27a614e99ff675b5b89d41a84dc0b
parentb366a24529e10b0b9c8e500f812be657df8228b8
m68k: handle presence of 64bit mul/div instructions cleanly

The traditional 68000 processors and the newer reduced instruction set
ColdFire processors do not support the 32*32->64 multiply or the 64/32->32
divide instructions. This is not a difference based on the presence of
a hardware MMU or not.

Create a new config symbol to mark that a CPU type doesn't support the
longer multiply/divide instructions. Use this then as a basis for using
the fast 64bit based divide (in div64.h) and for linking in the extra
libgcc functions that may be required (mulsi3, divsi3, etc).

Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
arch/m68k/Kconfig
arch/m68k/Kconfig.cpu
arch/m68k/include/asm/div64.h
arch/m68k/kernel/m68k_ksyms.c
arch/m68k/lib/Makefile