Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

ipi.c File Reference

#include "ki.h"

Go to the source code of this file.

Functions

VOID KiRestoreProcessorState (IN PKTRAP_FRAME TrapFrame, IN PKEXCEPTION_FRAME ExceptionFrame)
VOID KiSaveProcessorState (IN PKTRAP_FRAME TrapFrame, IN PKEXCEPTION_FRAME ExceptionFrame)
BOOLEAN KiIpiServiceRoutine (IN PKTRAP_FRAME TrapFrame, IN PKEXCEPTION_FRAME ExceptionFrame)


Function Documentation

BOOLEAN KiIpiServiceRoutine IN PKTRAP_FRAME  TrapFrame,
IN PKEXCEPTION_FRAME  ExceptionFrame
 

Definition at line 130 of file alpha/ipi.c.

References IPI_FREEZE, KiFreezeTargetExecution(), and KiIpiProcessRequests().

00137 : 00138 00139 00140 This function is called at IPI_LEVEL to process any outstanding 00141 interprocess request for the current processor. 00142 00143 Arguments: 00144 00145 TrapFrame - Supplies a pointer to a trap frame. 00146 00147 ExceptionFrame - Supplies a pointer to an exception frame 00148 00149 Return Value: 00150 00151 A value of TRUE is returned, if one of more requests were service. 00152 Otherwise, FALSE is returned. 00153 00154 --*/ 00155 00156 { 00157 00158 ULONG RequestSummary; 00159 00160 // 00161 // Process any outstanding interprocessor requests. 00162 // 00163 00164 RequestSummary = KiIpiProcessRequests(); 00165 00166 // 00167 // If freeze is requested, then freeze target execution. 00168 // 00169 00170 if ((RequestSummary & IPI_FREEZE) != 0) { 00171 KiFreezeTargetExecution(TrapFrame, ExceptionFrame); 00172 } 00173 00174 // 00175 // Return whether any requests were processed. 00176 // 00177 00178 return (RequestSummary & ~IPI_FREEZE) != 0; 00179 } }

VOID KiRestoreProcessorState IN PKTRAP_FRAME  TrapFrame,
IN PKEXCEPTION_FRAME  ExceptionFrame
 

Definition at line 31 of file alpha/ipi.c.

00038 : 00039 00040 This function moves processor register state from the current 00041 processor context structure in the processor block to the 00042 specified trap and exception frames. 00043 00044 Arguments: 00045 00046 TrapFrame - Supplies a pointer to a trap frame. 00047 00048 ExceptionFrame - Supplies a pointer to an exception frame. 00049 00050 Return Value: 00051 00052 None. 00053 00054 --*/ 00055 00056 { 00057 00058 PKPRCB Prcb; 00059 00060 // 00061 // Get the address of the current processor block and move the 00062 // specified register state from the processor context structure 00063 // to the specified trap and exception frames 00064 // 00065 00066 #if !defined(NT_UP) 00067 00068 Prcb = KeGetCurrentPrcb(); 00069 KeContextToKframes(TrapFrame, 00070 ExceptionFrame, 00071 &Prcb->ProcessorState.ContextFrame, 00072 CONTEXT_FULL, 00073 KernelMode); 00074 00075 #endif 00076 00077 return; 00078 }

VOID KiSaveProcessorState IN PKTRAP_FRAME  TrapFrame,
IN PKEXCEPTION_FRAME  ExceptionFrame
 

Definition at line 81 of file alpha/ipi.c.

00088 : 00089 00090 This function moves processor register state from the specified trap 00091 and exception frames to the processor context structure in the current 00092 processor block. 00093 00094 Arguments: 00095 00096 TrapFrame - Supplies a pointer to a trap frame. 00097 00098 ExceptionFrame - Supplies a pointer to an exception frame. 00099 00100 Return Value: 00101 00102 None. 00103 00104 --*/ 00105 00106 { 00107 00108 PKPRCB Prcb; 00109 00110 // 00111 // Get the address of the current processor block and move the 00112 // specified register state from specified trap and exception 00113 // frames to the current processor context structure. 00114 // 00115 00116 #if !defined(NT_UP) 00117 00118 Prcb = KeGetCurrentPrcb(); 00119 Prcb->ProcessorState.ContextFrame.ContextFlags = CONTEXT_FULL; 00120 KeContextFromKframes(TrapFrame, 00121 ExceptionFrame, 00122 &Prcb->ProcessorState.ContextFrame); 00123 00124 #endif 00125 00126 return; 00127 }


Generated on Sat May 15 19:44:23 2004 for test by doxygen 1.3.7