Tim,
I will go through review/check in process to fix this issue. Yes, it is
good for SCT to test this case and I will feedback to SCT owner.
Thanks
Elvin
-----Original Message-----
From: Tim Lewis [mailto:[email protected]]
Sent: Friday, August 09, 2013 1:40 AM
To: [email protected]
Subject: [edk2] Resend Timer Patch For DXE Core
Back in 2012, I reported a bug in NT32 with SetTimer(). Elvin Li found it was a
core problem and sent me a patch, which I verified, but it was never applied to
the DXE core. I have reattached it here. It seems like a good test case also
for the SCT. Can we update the DXE core?
HERE IS THE ORIGINAL E-MAIL:
Under NT32, I am getting strange timer behavior and wonder if anyone else has
seen this. I set up a timer, as follows:
gBS->CreateEvent (
EVT_TIMER,
0,
NULL,
NULL,
&mEvent
);
gBS->SetTimer (
mEvent,
TimerPeriodic,
1000000000000000
);
If I use gBS->WaitForEvent on mEvent, it doesn't seem to make a difference
whether I specify 0 or 1000000000000000, I get the same tick rate.
AND ELVIN'S RESPONSE:
Hi Tim:
I tried your code on my NT32 an= d had found these below:
1. When passing 0 to SetTimer, The event is signaled only once. No more
event will be signaled. This seems an issue in core. 0 should work to signal e
vent at system timer rate.
2. When passing 1000000000000000, the event will not be signaled until
the 1000000000000000 is passed. It is much long time to wait. When I reduced to
30000000, e.g. signal event is in 3s interval, it is good.
I am not sure you could miss one event signal when passing 0. I made an update
and you could try to see if you still have problem with passing 0 to SetTimer.
------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-devel