[ros-bugs] [Bug 6453] New: PATCH: Fixed 100% CPU usage in FreeLDR

ReactOS.Bugzilla at reactos.org ReactOS.Bugzilla at reactos.org
Thu Sep 1 10:25:16 UTC 2011


http://www.reactos.org/bugzilla/show_bug.cgi?id=6453

           Summary: PATCH: Fixed 100% CPU usage in FreeLDR
           Product: ReactOS
           Version: TRUNK
          Platform: x86 Hardware
        OS/Version: ReactOS
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: Other
        AssignedTo: ros-bugs at reactos.org
        ReportedBy: carlo.bramix at libero.it
         QAContact: ros-bugs at reactos.org


Created an attachment (id=6661)
 --> (http://www.reactos.org/bugzilla/attachment.cgi?id=6661)
Fix for this bug

FreeLDR has currently the defect to keep the CPU busy at 100%.
I believe it's not a big deal to fix this behaviour.

I added an entry into the MACHVTBL to keep a pointer to a function for putting
the CPU and eventually some hardware around in idle state.
I added these functions for ARM, PPC (normal + prep), Xbox and PC hardware.

Currently, only the PcHwIdle() function is implemented by calling the services
provided by APM extensions: as I wrote in the source, an optional improvement
would be the addition of HLT instruction, if the BIOS does not support APM, but
I think that nowadays this is not a problem. At worst, it will continue to work
as it worked until now.

Other platforms have their functions too, but they are left empty.


-- 
Configure bugmail: http://www.reactos.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.



More information about the Ros-bugs mailing list