MentOS  0.8.0
The Mentoring Operating System
Classes | Typedefs | Functions
Floating Point Unit (FPU)

Device designed to carry out operations on floating-point numbers. More...

Classes

struct  env87
 Environment information of floating point unit. More...
 
struct  fpacc87
 Contents of each floating point accumulator. More...
 
struct  save87
 Floating point context. More...
 
struct  envxmm
 Stores the XMM environment. More...
 
struct  xmmacc
 Contents of each SSE extended accumulator. More...
 
struct  savexmm
 Stores the XMM context. More...
 
union  savefpu
 Stores FPU registers details. More...
 

Typedefs

typedef struct env87 env87
 Environment information of floating point unit.
 
typedef struct fpacc87 fpacc87
 Contents of each floating point accumulator.
 
typedef struct save87 save87
 Floating point context.
 
typedef struct envxmm envxmm
 Stores the XMM environment.
 
typedef struct xmmacc xmmacc
 Contents of each SSE extended accumulator.
 
typedef struct savexmm _syscall0 = _syscall0( (__aligned__(16)) )= _syscall1( (__aligned__(16)) )= _syscall2( (__aligned__(16)) )= _syscall3( (__aligned__(16)) )= savexmm
 Stores the XMM context.
 
typedef union savefpu savefpu
 Stores FPU registers details.
 

Functions

void switch_fpu (void)
 Called during a context switch to save the FPU registers status of the currently running thread.
 
void unswitch_fpu (void)
 Called during a context switch to load the FPU registers status of the currently running thread inside the FPU.
 
int fpu_install (void)
 Enable the FPU context handling. More...
 

Detailed Description

Device designed to carry out operations on floating-point numbers.

Function Documentation

◆ fpu_install()

int fpu_install ( void  )

Enable the FPU context handling.

Returns
0 if fails, 1 if succeed.