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: Greg Ungerer <gerg@linux-m68k.org>
This commit is contained in:
@@ -280,8 +280,8 @@ _clear_bss:
|
||||
movel %d0,m68k_cputype /* Mark us as a ColdFire */
|
||||
movel #MMU_COLDFIRE,%d0
|
||||
movel %d0,m68k_mmutype
|
||||
movel #FPU_COLDFIRE,%d0
|
||||
movel %d0,m68k_fputype
|
||||
movel #FPUTYPE,%d0
|
||||
movel %d0,m68k_fputype /* Mark FPU type */
|
||||
movel #MACHINE,%d0
|
||||
movel %d0,m68k_machtype /* Mark machine type */
|
||||
lea init_task,%a2 /* Set "current" init task */
|
||||
|
Reference in New Issue
Block a user