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 <asm/cpu-regs.h>
13 ###############################################################################
15 # void fpu_init_state(void)
16 # - initialise the FPU
18 ###############################################################################
20 .type fpu_init_state,@function
25 #ifdef CONFIG_MN10300_PROC_MN103E010
64 #ifdef CONFIG_MN10300_PROC_MN103E010
72 .size fpu_init_state,.-fpu_init_state
74 ###############################################################################
76 # void fpu_save(struct fpu_state_struct *)
77 # - save the fpu state
78 # - note that an FPU Operational exception might occur during this process
80 ###############################################################################
82 .type fpu_save,@function
85 or EPSW_FE,epsw /* enable the FPU so we can access it */
87 #ifdef CONFIG_MN10300_PROC_MN103E010
126 #ifdef CONFIG_MN10300_PROC_MN103E010
134 .size fpu_save,.-fpu_save
136 ###############################################################################
138 # void fpu_restore(struct fpu_state_struct *)
139 # - restore the fpu state
140 # - note that an FPU Operational exception might occur during this process
142 ###############################################################################
144 .type fpu_restore,@function
147 or EPSW_FE,epsw /* enable the FPU so we can access it */
149 #ifdef CONFIG_MN10300_PROC_MN103E010
188 #ifdef CONFIG_MN10300_PROC_MN103E010
197 .size fpu_restore,.-fpu_restore