发明名称 Method and apparatus for handling an interrupt from a real-time clock to increment a program clock
摘要 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.
申请公布号 US6981165(B2) 申请公布日期 2005.12.27
申请号 US20020233731 申请日期 2002.09.03
申请人 INTERNATIONAL BUSINESS MACHINES CORPORATION 发明人 MARIK MARK D.
分类号 G06F1/14;(IPC1-7):G06F1/12 主分类号 G06F1/14
代理机构 代理人
主权项
地址