-\r
-/**\r
- Called by the platform code to process a tick.\r
-\r
- @param Duration The number of 100ns elasped since the last call\r
- to TimerTick\r
-\r
-**/\r
-VOID\r
-EFIAPI\r
-CoreTimerTick (\r
- IN UINT64 Duration\r
- )\r
-{\r
- IEVENT *Event;\r
-\r
- //\r
- // Check runtiem flag in case there are ticks while exiting boot services\r
- //\r
- CoreAcquireLock (&mEfiSystemTimeLock);\r
-\r
- //\r
- // Update the system time\r
- //\r
- mEfiSystemTime += Duration;\r
-\r
- //\r
- // If the head of the list is expired, fire the timer event\r
- // to process it\r
- //\r
- if (!IsListEmpty (&mEfiTimerList)) {\r
- Event = CR (mEfiTimerList.ForwardLink, IEVENT, u.Timer.Link, EVENT_SIGNATURE);\r
-\r
- if (Event->u.Timer.TriggerTime <= mEfiSystemTime) {\r
- CoreSignalEvent (mEfiCheckTimerEvent);\r
- }\r
- }\r
-\r
- CoreReleaseLock (&mEfiSystemTimeLock);\r
-}\r
-\r
-\r