Rev 979 | Rev 1023 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 979 | Rev 993 | ||
---|---|---|---|
Line 26... | Line 26... | ||
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
27 | * |
27 | * |
28 | */ |
28 | */ |
29 | 29 | ||
30 | #include <fpu_context.h> |
30 | #include <fpu_context.h> |
- | 31 | #include <print.h> |
|
31 | 32 | ||
32 | void fpu_context_save(fpu_context_t *fctx){ |
33 | void fpu_context_save(fpu_context_t *fctx){ |
- | 34 | return; |
|
33 | asm volatile( |
35 | asm volatile( |
34 | "stf.spill [%2]=f2,0x80\n" |
36 | "stf.spill [%2]=f2,0x80\n" |
35 | "stf.spill [%3]=f3,0x80\n" |
37 | "stf.spill [%3]=f3,0x80\n" |
36 | "stf.spill [%4]=f4,0x80\n" |
38 | "stf.spill [%4]=f4,0x80\n" |
37 | "stf.spill [%5]=f5,0x80\n" |
39 | "stf.spill [%5]=f5,0x80\n" |
Line 184... | Line 186... | ||
184 | } |
186 | } |
185 | 187 | ||
186 | 188 | ||
187 | void fpu_context_restore(fpu_context_t *fctx) |
189 | void fpu_context_restore(fpu_context_t *fctx) |
188 | { |
190 | { |
189 | 191 | return; |
|
190 | asm volatile( |
192 | asm volatile( |
191 | "ldf.fill f2=[%2],0x80\n" |
193 | "ldf.fill f2=[%2],0x80\n" |
192 | "ldf.fill f3=[%3],0x80\n" |
194 | "ldf.fill f3=[%3],0x80\n" |
193 | "ldf.fill f4=[%4],0x80\n" |
195 | "ldf.fill f4=[%4],0x80\n" |
194 | "ldf.fill f5=[%5],0x80\n" |
196 | "ldf.fill f5=[%5],0x80\n" |