Path: blob/master/arch/mn10300/kernel/fpu-nofpu-low.S
10817 views
/* MN10300 Low level FPU management operations1*2* Copyright (C) 2007 Red Hat, Inc. All Rights Reserved.3* Written by David Howells ([email protected])4*5* This program is free software; you can redistribute it and/or6* modify it under the terms of the GNU General Public Licence7* as published by the Free Software Foundation; either version8* 2 of the Licence, or (at your option) any later version.9*/10#include <linux/linkage.h>11#include <asm/cpu-regs.h>12#include <asm/smp.h>13#include <asm/thread_info.h>14#include <asm/asm-offsets.h>15#include <asm/frame.inc>1617###############################################################################18#19# void fpu_disabled(void)20# - handle an exception due to the FPU being disabled21# when CONFIG_FPU is disabled22#23###############################################################################24.type fpu_disabled,@function25.globl fpu_disabled26fpu_disabled:27add -4,sp28SAVE_ALL29mov -1,d030mov d0,(REG_ORIG_D0,fp)3132and ~EPSW_NMID,epsw3334mov fp,d035call unexpected_fpu_exception[],036jmp ret_from_exception3738.size fpu_disabled,.-fpu_disabled394041