Subversion Repositories HelenOS-historic

Rev

Rev 52 | 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
/*
45
/*
46
    pushl %eax
46
    pushl %eax
47
        mov 8(%esp),%eax
47
        mov 8(%esp),%eax
48
        fxsave (%eax)
48
        fxsave (%eax)
49
        popl %eax
49
        popl %eax
50
        ret
50
        ret
51
*/ 
51
*/ 
52
}
52
}
53
 
53
 
54
void fpu_lazy_context_restore()
54
void fpu_lazy_context_restore(fpu_context_t *fctx)
55
{
55
{
56
/*
56
/*
57
    pushl %eax
57
    pushl %eax
58
        mov 8(%esp),%eax
58
        mov 8(%esp),%eax
59
        fxrstor (%eax)
59
        fxrstor (%eax)