发明名称 Method for providing exclusive access to a resource in a multiprocessor computer system
摘要 A multiprocessor computing system has memory shared by all processors of the computing system and includes an symmetric multiprocessor (SMP) operating system and at least one external device controlled by a device driver. The device driver is typically written to run in a uniprocessor environment. A method for protecting the execution state of the device driver uses a pair of "collaborative" spinlocks, an interrupt time spinlock and a task time spinlock. At task time, prior to calling the device driver, the task time spinlock is acquired by the operating system. The operating system then waits until the interrupt time spinlock is in an "unowned" state before calling the device driver. Upon return from the device driver, the operating system releases the task time spinlock. At interrupt time, prior to calling the device driver's interrupt handler, the interrupt time spinlock is acquired by the operating system. The operating system then determines if the task time spinlock is owned. If it is owned, the operating system then issues an interprocessor interrupt (IPI) to the processor owning the task time spinlock, thus placing that processor into a predetermined "spin" state. The receiving processor remains in the spinning state until return of the device driver execution. <IMAGE>
申请公布号 EP0887730(A1) 申请公布日期 1998.12.30
申请号 EP19980304676 申请日期 1998.06.12
申请人 INTERNATIONAL BUSINESS MACHINES CORPORATION 发明人 HARTNER, WILLIAM;MEDINA, DAVID;PELOQUIN, MARK;SCHMITT, CHARLES;MACON, JAMES, JR.
分类号 G06F9/46;(IPC1-7):G06F9/46 主分类号 G06F9/46
代理机构 代理人
主权项
地址