Code Scrub for Dxe Core.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5560 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
qhuang8
2008-07-24 02:54:45 +00:00
parent 11c11e4ecf
commit 022c6d45ef
38 changed files with 2499 additions and 2504 deletions

View File

@@ -116,7 +116,7 @@ CoreInitializeEventServices (
/**
Dispatches all pending events.
@param Priority The task priority level of event notifications
@param Priority The task priority level of event notifications
to dispatch
**/
@@ -239,18 +239,18 @@ CoreNotifySignalList (
/**
Creates a general-purpose event structure.
@param Type The type of event to create and its mode and
attributes
@param NotifyTpl The task priority level of event notifications
@param NotifyFunction Pointer to the events notification function
@param NotifyContext Pointer to the notification functions context;
corresponds to parameter "Context" in the
notification function
@param Event Pointer to the newly created event if the call
succeeds; undefined otherwise
@param Type The type of event to create and its mode and
attributes
@param NotifyTpl The task priority level of event notifications
@param NotifyFunction Pointer to the events notification function
@param NotifyContext Pointer to the notification functions context;
corresponds to parameter "Context" in the
notification function
@param Event Pointer to the newly created event if the call
succeeds; undefined otherwise
@retval EFI_SUCCESS The event structure was created
@retval EFI_INVALID_PARAMETER One of the parameters has an invalid value
@retval EFI_SUCCESS The event structure was created
@retval EFI_INVALID_PARAMETER One of the parameters has an invalid value
@retval EFI_OUT_OF_RESOURCES The event could not be allocated
**/
@@ -272,20 +272,20 @@ CoreCreateEvent (
/**
Creates a general-purpose event structure
@param Type The type of event to create and its mode and
attributes
@param NotifyTpl The task priority level of event notifications
@param NotifyFunction Pointer to the events notification function
@param NotifyContext Pointer to the notification functions context;
corresponds to parameter "Context" in the
notification function
@param EventGroup GUID for EventGroup if NULL act the same as
gBS->CreateEvent().
@param Event Pointer to the newly created event if the call
succeeds; undefined otherwise
@param Type The type of event to create and its mode and
attributes
@param NotifyTpl The task priority level of event notifications
@param NotifyFunction Pointer to the events notification function
@param NotifyContext Pointer to the notification functions context;
corresponds to parameter "Context" in the
notification function
@param EventGroup GUID for EventGroup if NULL act the same as
gBS->CreateEvent().
@param Event Pointer to the newly created event if the call
succeeds; undefined otherwise
@retval EFI_SUCCESS The event structure was created
@retval EFI_INVALID_PARAMETER One of the parameters has an invalid value
@retval EFI_SUCCESS The event structure was created
@retval EFI_INVALID_PARAMETER One of the parameters has an invalid value
@retval EFI_OUT_OF_RESOURCES The event could not be allocated
**/
@@ -436,7 +436,7 @@ CoreCreateEventEx (
@param UserEvent The event to signal .
@retval EFI_INVALID_PARAMETER Parameters are not valid.
@retval EFI_INVALID_PARAMETER Parameters are not valid.
@retval EFI_SUCCESS The event was signaled.
**/
@@ -494,10 +494,10 @@ CoreSignalEvent (
/**
Check the status of an event.
@param UserEvent The event to check
@param UserEvent The event to check
@retval EFI_SUCCESS The event is in the signaled state
@retval EFI_NOT_READY The event is not in the signaled state
@retval EFI_SUCCESS The event is in the signaled state
@retval EFI_NOT_READY The event is not in the signaled state
@retval EFI_INVALID_PARAMETER Event is of type EVT_NOTIFY_SIGNAL
**/
@@ -561,14 +561,14 @@ CoreCheckEvent (
/**
Stops execution until an event is signaled.
@param NumberOfEvents The number of events in the UserEvents array
@param UserEvents An array of EFI_EVENT
@param UserIndex Pointer to the index of the event which
satisfied the wait condition
@param NumberOfEvents The number of events in the UserEvents array
@param UserEvents An array of EFI_EVENT
@param UserIndex Pointer to the index of the event which
satisfied the wait condition
@retval EFI_SUCCESS The event indicated by Index was signaled.
@retval EFI_INVALID_PARAMETER The event indicated by Index has a notification
function or Event was not a valid type
@retval EFI_SUCCESS The event indicated by Index was signaled.
@retval EFI_INVALID_PARAMETER The event indicated by Index has a notification
function or Event was not a valid type
@retval EFI_UNSUPPORTED The current TPL is not TPL_APPLICATION
**/
@@ -616,9 +616,9 @@ CoreWaitForEvent (
/**
Closes an event and frees the event structure.
@param UserEvent Event to close
@param UserEvent Event to close
@retval EFI_INVALID_PARAMETER Parameters are not valid.
@retval EFI_INVALID_PARAMETER Parameters are not valid.
@retval EFI_SUCCESS The event has been closed
**/

View File

@@ -33,7 +33,7 @@ CoreCurrentSystemTime (
Checks the sorted timer list against the current system time.
Signals any expired event timer.
@param CheckEvent Not used
@param CheckEvent Not used
@param Context Not used
**/
@@ -47,7 +47,7 @@ CoreCheckTimers (
/**
Inserts the timer event.
@param Event Points to the internal structure of timer event
@param Event Points to the internal structure of timer event
to be installed
**/
@@ -108,7 +108,7 @@ CoreCurrentSystemTime (
CoreAcquireLock (&mEfiSystemTimeLock);
SystemTime = mEfiSystemTime;
CoreReleaseLock (&mEfiSystemTimeLock);
return SystemTime;
}
@@ -116,7 +116,7 @@ CoreCurrentSystemTime (
/**
Called by the platform code to process a tick.
@param Duration The number of 100ns elasped since the last call
@param Duration The number of 100ns elasped since the last call
to TimerTick
**/
@@ -158,7 +158,7 @@ CoreTimerTick (
Checks the sorted timer list against the current system time.
Signals any expired event timer.
@param CheckEvent Not used
@param CheckEvent Not used
@param Context Not used
**/
@@ -231,7 +231,7 @@ CoreCheckTimers (
/**
Inserts the timer event.
@param Event Points to the internal structure of timer event
@param Event Points to the internal structure of timer event
to be installed
**/
@@ -270,15 +270,15 @@ CoreInsertEventTimer (
/**
Sets the type of timer and the trigger time for a timer event.
@param UserEvent The timer event that is to be signaled at the
specified time
@param Type The type of time that is specified in
TriggerTime
@param TriggerTime The number of 100ns units until the timer
expires
@param UserEvent The timer event that is to be signaled at the
specified time
@param Type The type of time that is specified in
TriggerTime
@param TriggerTime The number of 100ns units until the timer
expires
@retval EFI_SUCCESS The event has been set to be signaled at the
requested time
@retval EFI_SUCCESS The event has been set to be signaled at the
requested time
@retval EFI_INVALID_PARAMETER Event or Type is not valid
**/

View File

@@ -42,7 +42,7 @@ CoreSetInterruptState (
/**
Return the highest set bit.
@param Number The value to check
@param Number The value to check
@return Bit position of the highest set bit
@@ -53,7 +53,7 @@ CoreHighestSetBit (
)
{
UINTN Msb;
Msb = 31;
while ((Msb > 0) && ((Number & (UINTN)(1 << Msb)) == 0)) {
Msb--;
@@ -69,7 +69,7 @@ CoreHighestSetBit (
Raise the task priority level to the new level.
High level is implemented by disabling processor interrupts.
@param NewTpl New task priority level
@param NewTpl New task priority level
@return The previous task priority level
@@ -129,7 +129,7 @@ CoreRestoreTpl (
//
if (OldTpl >= TPL_HIGH_LEVEL && NewTpl < TPL_HIGH_LEVEL) {
gEfiCurrentTpl = TPL_HIGH_LEVEL;
gEfiCurrentTpl = TPL_HIGH_LEVEL;
}
//