summaryrefslogtreecommitdiff
path: root/core/timer.inc
Commit message (Collapse)AuthorAgeFilesLines
* core: add a ms-denominated timerH. Peter Anvin2010-07-051-2/+13
| | | | | | | | | Add a timer denominated in milliseconds. This is still driven by the 18.2 Hz timer interrupt, but counts "real" milliseconds, including handing the adjustment factor (which in reality means it advances by 55 for most timer ticks and 54 for some.) Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* core: move __jiffies and _IdleTimer to .data16syslinux-4.00-pre37H. Peter Anvin2010-03-301-3/+3
| | | | | | | | Move the __jiffies and _IdleTimer variables to the .data16 segment. This ensures that if do_idle is invoked very early that it will not jump off into a non-existent idle routine. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
* core: make sure __jiffies is alignedH. Peter Anvin2009-09-021-0/+1
| | | | | | | __jiffies really wants to be aligned. We're not SMP, so technically it will be atomic anyway. Still... Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* core: hook INT 1Ch for a simple monotonic timerH. Peter Anvin2009-09-021-0/+45
The BIOS_timer variable at 4C6h is somewhat unreliable... it is documented to wrap at "midnight", norminally after 1627419 ticks (0x18d51b), which is a rather awkward number to deal with modulo. Instead, hook the INT 1Ch secondary timer interrupt and just count a simple incrementing variable. Signed-off-by: H. Peter Anvin <hpa@zytor.com>