Don't use RTC to time boot menu delay.
authorKevin O'Connor <kevin@koconnor.net>
Sun, 23 May 2010 16:40:40 +0000 (12:40 -0400)
committerKevin O'Connor <kevin@koconnor.net>
Sun, 23 May 2010 16:40:40 +0000 (12:40 -0400)
commitbb68591e7169f9acdfb9625073ceab5f367613f0
tree7a514b1790f1a0941107b8c787a7ca9762470515
parentb5cc2ca5d06b4982139afd1205a0390944c60c7d
Don't use RTC to time boot menu delay.

It appears real machines sometimes have a flaky RTC, so avoid using
the RTC irq during boot.  Instead, use a delay based on the standard
timer irq.

This also optimizes CONFIG_THREAD_OPTIONROMS users as it is no longer
necessary to use preemption - the wait_irq() call handles task
switching natively.
src/clock.c
src/util.c
src/util.h