Eliminate callback check to Portable_Idle races
Both RdchInkey
and PageTest
enable interrupts after
running callbacks before calling Portable_Idle with the result that
callback could be delayed until the next interrupt.
- Remove remains of led setting from
PageTest
. - Remove pointless double test of Ctrl and Shift.
- Change
process_callback_chain
to leave interrupts disabled, and rename accordingly. - Remove redundant check of CallBack_Flag.
- In
PageTest
move running calbacks intoCtrlShiftTest
, so that it is immediately before the test. - Re-enable interrupts at appropriate locations.
Tested on StrongARM Risc PC.