1 /* MN10300 Low level FPU management operations
3 * Copyright (C) 2007 Red Hat, Inc. All Rights Reserved.
4 * Written by David Howells (dhowells@redhat.com)
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public Licence
8 * as published by the Free Software Foundation; either version
9 * 2 of the Licence, or (at your option) any later version.
11 #include <linux/linkage.h>
12 #include <asm/cpu-regs.h>
14 #include <asm/thread_info.h>
15 #include <asm/asm-offsets.h>
16 #include <asm/frame.inc>
18 ###############################################################################
20 # void fpu_disabled(void)
21 # - handle an exception due to the FPU being disabled
22 # when CONFIG_FPU is disabled
24 ###############################################################################
25 .type fpu_disabled,@function
31 mov d0,(REG_ORIG_D0,fp)
36 call unexpected_fpu_exception[],0
37 jmp ret_from_exception
39 .size fpu_disabled,.-fpu_disabled