source: rtems/cpukit/score/include/rtems/score/context.h @ dd687d97

4.104.114.84.95
Last change on this file since dd687d97 was dd687d97, checked in by Joel Sherrill <joel.sherrill@…>, on 09/04/03 at 18:56:05

2003-09-04 Joel Sherrill <joel@…>

  • include/rtems/debug.h, include/rtems/seterr.h, include/rtems/system.h, include/rtems/score/address.h, include/rtems/score/apiext.h, include/rtems/score/apimutex.h, include/rtems/score/bitfield.h, include/rtems/score/chain.h, include/rtems/score/context.h, include/rtems/score/copyrt.h, include/rtems/score/coremsg.h, include/rtems/score/coremutex.h, include/rtems/score/coresem.h, include/rtems/score/heap.h, include/rtems/score/interr.h, include/rtems/score/isr.h, include/rtems/score/mpci.h, include/rtems/score/mppkt.h, include/rtems/score/object.h, include/rtems/score/objectmp.h, include/rtems/score/priority.h, include/rtems/score/stack.h, include/rtems/score/states.h, include/rtems/score/sysstate.h, include/rtems/score/thread.h, include/rtems/score/threadmp.h, include/rtems/score/threadq.h, include/rtems/score/tod.h, include/rtems/score/tqdata.h, include/rtems/score/userext.h, include/rtems/score/watchdog.h, include/rtems/score/wkspace.h, inline/rtems/score/address.inl, inline/rtems/score/chain.inl, inline/rtems/score/coremsg.inl, inline/rtems/score/coremutex.inl, inline/rtems/score/coresem.inl, inline/rtems/score/heap.inl, inline/rtems/score/isr.inl, inline/rtems/score/mppkt.inl, inline/rtems/score/object.inl, inline/rtems/score/objectmp.inl, inline/rtems/score/priority.inl, inline/rtems/score/stack.inl, inline/rtems/score/states.inl, inline/rtems/score/sysstate.inl, inline/rtems/score/thread.inl, inline/rtems/score/threadmp.inl, inline/rtems/score/tod.inl, inline/rtems/score/tqdata.inl, inline/rtems/score/userext.inl, inline/rtems/score/watchdog.inl, inline/rtems/score/wkspace.inl, macros/rtems/score/address.inl, macros/rtems/score/chain.inl, macros/rtems/score/coremsg.inl, macros/rtems/score/coremutex.inl, macros/rtems/score/coresem.inl, macros/rtems/score/heap.inl, macros/rtems/score/isr.inl, macros/rtems/score/mppkt.inl, macros/rtems/score/object.inl, macros/rtems/score/objectmp.inl, macros/rtems/score/priority.inl, macros/rtems/score/stack.inl, macros/rtems/score/states.inl, macros/rtems/score/sysstate.inl, macros/rtems/score/thread.inl, macros/rtems/score/threadmp.inl, macros/rtems/score/tod.inl, macros/rtems/score/tqdata.inl, macros/rtems/score/userext.inl, macros/rtems/score/watchdog.inl, macros/rtems/score/wkspace.inl, src/apiext.c, src/chain.c, src/coremsg.c, src/coremsgbroadcast.c, src/coremsgclose.c, src/coremsgflush.c, src/coremsgflushsupp.c, src/coremsgflushwait.c, src/coremsginsert.c, src/coremsgseize.c, src/coremsgsubmit.c, src/coremutex.c, src/coremutexflush.c, src/coremutexseize.c, src/coremutexsurrender.c, src/coresem.c, src/coresemflush.c, src/coresemseize.c, src/coresemsurrender.c, src/coretod.c, src/coretodset.c, src/coretodtickle.c, src/coretodtoseconds.c, src/coretodvalidate.c, src/heap.c, src/heapallocate.c, src/heapextend.c, src/heapfree.c, src/heapgetinfo.c, src/heapsizeofuserarea.c, src/heapwalk.c, src/interr.c, src/isr.c, src/iterateoverthreads.c, src/mpci.c, src/object.c, src/objectallocate.c, src/objectallocatebyindex.c, src/objectclearname.c, src/objectcomparenameraw.c, src/objectcomparenamestring.c, src/objectcopynameraw.c, src/objectcopynamestring.c, src/objectextendinformation.c, src/objectfree.c, src/objectget.c, src/objectgetbyindex.c, src/objectgetisr.c, src/objectgetnext.c, src/objectgetnoprotection.c, src/objectidtoname.c, src/objectinitializeinformation.c, src/objectmp.c, src/objectnametoid.c, src/objectshrinkinformation.c, src/thread.c, src/threadchangepriority.c, src/threadclearstate.c, src/threadclose.c, src/threadcreateidle.c, src/threaddelayended.c, src/threaddispatch.c, src/threadevaluatemode.c, src/threadget.c, src/threadhandler.c, src/threadidlebody.c, src/threadinitialize.c, src/threadloadenv.c, src/threadmp.c, src/threadq.c, src/threadqdequeue.c, src/threadqdequeuefifo.c, src/threadqdequeuepriority.c, src/threadqenqueue.c, src/threadqenqueuefifo.c, src/threadqenqueuepriority.c, src/threadqextract.c, src/threadqextractfifo.c, src/threadqextractpriority.c, src/threadqextractwithproxy.c, src/threadqfirst.c, src/threadqfirstfifo.c, src/threadqfirstpriority.c, src/threadqflush.c, src/threadqtimeout.c, src/threadready.c, src/threadreset.c, src/threadresettimeslice.c, src/threadrestart.c, src/threadresume.c, src/threadrotatequeue.c, src/threadsetpriority.c, src/threadsetstate.c, src/threadsettransient.c, src/threadstackallocate.c, src/threadstackfree.c, src/threadstart.c, src/threadstartmultitasking.c, src/threadsuspend.c, src/threadtickletimeslice.c, src/threadyieldprocessor.c, src/userext.c, src/watchdog.c, src/watchdogadjust.c, src/watchdoginsert.c, src/watchdogremove.c, src/watchdogtickle.c, src/wkspace.c: URL for license changed.
  • Property mode set to 100644
File size: 2.9 KB
Line 
1/*  context.h
2 *
3 *  This include file contains all information about a context.
4 *
5 *  COPYRIGHT (c) 1989-1999.
6 *  On-Line Applications Research Corporation (OAR).
7 *
8 *  The license and distribution terms for this file may be
9 *  found in the file LICENSE in this distribution or at
10 *  http://www.rtems.com/license/LICENSE.
11 *
12 *  $Id$
13 */
14
15#ifndef __RTEMS_CONTEXT_h
16#define __RTEMS_CONTEXT_h
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21
22#include <rtems/score/cpu.h>
23
24/*
25 *  The following constant defines the number of bytes required
26 *  to store a full floating point context.
27 */
28
29#define CONTEXT_FP_SIZE CPU_CONTEXT_FP_SIZE
30
31/*
32 *  The following variable is set to TRUE when a reschedule operation
33 *  has determined that the processor should be taken away from the
34 *  currently executing thread and given to the heir thread.
35 */
36
37SCORE_EXTERN volatile boolean _Context_Switch_necessary;
38
39/*
40 *  _Context_Initialize
41 *
42 *  DESCRIPTION:
43 *
44 *  This routine initializes THE_CONTEXT such that the stack
45 *  pointer, interrupt level, and entry point are correct for the
46 *  thread's initial state.
47 */
48
49#define \
50   _Context_Initialize( _the_context, _stack, _size, _isr, _entry, _is_fp ) \
51   _CPU_Context_Initialize( _the_context, _stack, _size, _isr, _entry, _is_fp )
52
53/*
54 *  _Context_Switch
55 *
56 *  DESCRIPTION:
57 *
58 *  This routine saves the current context into the EXECUTING
59 *  context record and restores the context specified by HEIR.
60 */
61
62#define _Context_Switch( _executing, _heir ) \
63   _CPU_Context_switch( _executing, _heir )
64
65/*
66 *  _Context_Restart_self
67 *
68 *  DESCRIPTION:
69 *
70 *  This routine restarts the calling thread by restoring its initial
71 *  stack pointer and returning to the thread's entry point.
72 */
73
74#define _Context_Restart_self( _the_context ) \
75   _CPU_Context_Restart_self( _the_context )
76
77/*
78 *  _Context_Fp_start
79 *
80 *  DESCRIPTION:
81 *
82 *  This function returns the starting address of the floating
83 *  point context save area.  It is assumed that the are reserved
84 *  for the floating point save area is large enough.
85 */
86
87#define _Context_Fp_start( _base, _offset ) \
88   _CPU_Context_Fp_start( (_base), (_offset) )
89
90/*
91 *  _Context_Initialize_fp
92 *
93 *  DESCRIPTION:
94 *
95 *  This routine initializes the floating point context save
96 *  area to contain an initial known state.
97 */
98
99#define _Context_Initialize_fp( _fp_area ) \
100   _CPU_Context_Initialize_fp( _fp_area )
101
102/*
103 *  _Context_Restore_fp
104 *
105 *  DESCRIPTION:
106 *
107 *  This routine restores the floating point context contained
108 *  in the FP_CONTEXT area.  It is assumed that the current
109 *  floating point context has been saved by a previous invocation
110 *  of SAVE_FP.
111 */
112
113#define _Context_Restore_fp( _fp ) \
114   _CPU_Context_restore_fp( _fp )
115
116/*
117 *  _Context_Save_fp
118 *
119 *  DESCRIPTION:
120 *
121 *  This routine saves the current floating point context
122 *  in the FP_CONTEXT area.
123 */
124
125#define _Context_Save_fp( _fp ) \
126   _CPU_Context_save_fp( _fp )
127
128#ifdef __cplusplus
129}
130#endif
131
132#endif
133/* end of include file */
Note: See TracBrowser for help on using the repository browser.