RTEMS Logo

RTEMS 4.6.99.3 On-Line Library


Task Context Management Restoring a Floating Point Context

PREV UP NEXT Bookshelf RTEMS Porting Guide

6.4.9: Restoring a Floating Point Context

The _CPU_Context_restore_fp_context is responsible for restoring the FP context at *fp_context_ptr. If the point to load the FP context from is changed then the pointer is modified by this routine.

Sometimes a macro implementation of this is in cpu.h which dereferences the ** and a similarly named routine in this file is passed something like a (Context_Control_fp *). The general rule on making this decision is to avoid writing assembly language.

void _CPU_Context_restore_fp(
  void **fp_context_ptr
);


PREV UP NEXT Bookshelf RTEMS Porting Guide

Copyright © 1988-2004 OAR Corporation