Commit cbd5b982 authored by Greg Ungerer's avatar Greg Ungerer

m68k: report correct FPU type on ColdFire MMU platforms

Not all ColdFire SoC parts that have an MMU also have an FPU - so set
an FPU type (via m68k_fputype) appropriate for the configured platform.

With this set correctly /proc/cpuinfo will report FPU "none" on devices
that don't have one. And kernel code paths that initialize FPU hardware
will now only execute if an FPU is actually present.
Signed-off-by: default avatarGreg Ungerer <gerg@linux-m68k.org>
parent 81d33350
...@@ -280,8 +280,8 @@ _clear_bss: ...@@ -280,8 +280,8 @@ _clear_bss:
movel %d0,m68k_cputype /* Mark us as a ColdFire */ movel %d0,m68k_cputype /* Mark us as a ColdFire */
movel #MMU_COLDFIRE,%d0 movel #MMU_COLDFIRE,%d0
movel %d0,m68k_mmutype movel %d0,m68k_mmutype
movel #FPU_COLDFIRE,%d0 movel #FPUTYPE,%d0
movel %d0,m68k_fputype movel %d0,m68k_fputype /* Mark FPU type */
movel #MACHINE,%d0 movel #MACHINE,%d0
movel %d0,m68k_machtype /* Mark machine type */ movel %d0,m68k_machtype /* Mark machine type */
lea init_task,%a2 /* Set "current" init task */ lea init_task,%a2 /* Set "current" init task */
......
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
#define CPU_INSTR_PER_JIFFY 2 #define CPU_INSTR_PER_JIFFY 2
#define MCF_BUSCLK (MCF_CLK / 2) #define MCF_BUSCLK (MCF_CLK / 2)
#define MACHINE MACH_M5441X #define MACHINE MACH_M5441X
#define FPUTYPE 0
#include <asm/m54xxacr.h> #include <asm/m54xxacr.h>
......
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
#define CPU_INSTR_PER_JIFFY 2 #define CPU_INSTR_PER_JIFFY 2
#define MCF_BUSCLK (MCF_CLK / 2) #define MCF_BUSCLK (MCF_CLK / 2)
#define MACHINE MACH_M54XX #define MACHINE MACH_M54XX
#define FPUTYPE FPU_COLDFIRE
#include <asm/m54xxacr.h> #include <asm/m54xxacr.h>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment