Subversion Repositories HelenOS-historic

Rev

Rev 52 | Rev 92 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 52 Rev 57
Line 28... Line 28...
28
#
28
#
29
*/
29
*/
30
 
30
 
31
#include <fpu_context.h>
31
#include <fpu_context.h>
32
 
32
 
33
void fpu_context_save(void)
33
void fpu_context_save(fpu_context_t *fctx)
34
{
34
{
35
}
35
}
36
 
36
 
37
 
37
 
38
void fpu_context_restore()
38
void fpu_context_restore(fpu_context_t *fctx)
39
{
39
{
40
}
40
}
41
 
41
 
42
 
42
 
43
void fpu_lazy_context_save()
43
void fpu_lazy_context_save(fpu_context_t *fctx)
44
{
44
{
45
/*
-
 
46
    pushl %eax
-
 
47
        mov 8(%esp),%eax
-
 
48
        fxsave (%eax)
-
 
49
        popl %eax
-
 
50
        ret
-
 
51
*/ 
-
 
52
}
45
}
53
 
46
 
54
void fpu_lazy_context_restore()
47
void fpu_lazy_context_restore(fpu_context_t *fctx)
55
{
48
{
56
/*
-
 
57
    pushl %eax
-
 
58
        mov 8(%esp),%eax
-
 
59
        fxrstor (%eax)
-
 
60
        popl %eax
-
 
61
        ret
-
 
62
*/ 
-
 
63
}
49
}