Method and apparatus for handling an interrupt from a real-time clock to increment a program clock
Abstract
A method and apparatus for handling an interrupt from a real-time clock to increment a program clock in a computer system while compensating for missed interrupts due to contention on a system bus from a DMA controller or the like. In accordance with the invention, a count is stored representing a cumulative interval of time that has elapsed without a corresponding incrementing of the program clock. In response to an interrupt from the real-time clock, the processor transfers control to an interrupt handling routine, which determines the interval of time that has elapsed since the previous real-time clock interrupt and increments the cumulative interval of time by the actual interval of time that has elapsed since the previous real-time clock interrupt. If the cumulative interval of time is greater than an expected interval of time between real-time clock interrupts, the interrupt handling routine iteratively increments the program clock and decrements the cumulative interval of time to reflect incrementing of the program clock until the cumulative interval of time is less than the expected interval of time between real-time clock interrupts.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 7 · Forward citations: 4.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
In a computer system having a processor and a program running on the processor, the program having a program clock that is incremented by the processor in response to an interrupt received from a real-time clock, a method of incrementing the program clock, comprising the steps of: (a) storing a count representing a cumulative interval of time that has elapsed without a corresponding incrementing of the program clock; and (b) in response to an interrupt from the real-time clock: (1) incrementing the cumulative interval of time by an actual interval of time that has elapsed since a previous real
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (4 of 4 total)
References Cited — Backward Prior Art (7)
Non-Patent Literature (3)
- INTEL: 82C54 CHMOS Programmable Interval Timer, Order No. 231244-006, pp. 1-18, Oct. 1994.
- John P. Hayes, Computer Architecture and Organization 2nd Edition, 1988, pp. 506-533.
- TDB: Hardware Support for an Operating System Timer, pp. 237-238, Mar. 1992.