Patent ID: 7421694

Claim:
A method for streamlining operations in a coprocessor by ensuring all required memory resources for a task are available, comprising: prior to beginning the processing of the task, preparing the task for processing in a coprocessor by paging memory resources, within a memory space accessible by the coprocessor, associated with the task into coprocessor-readable memory; sampling the memory resources to determine if all required memory resources are in a proper location in the coprocessor-readable memory; and recording whether all required memory resources are in a proper location in the coprocessor-readable memory, wherein said recording generates an indicator memory resource that is associated with the task; processing said indicator memory resource substantially at the beginning of processing the task, wherein when said indicator memory resource indicates that all required memory resources are not in the proper location in the coprocessor-readable memory, a first page fault is generated, and the coprocessor stops beginning the processing of the task, wherein a list of tasks is maintained that comprises tasks that the coprocessor stopped processing; and generating a second page fault when a context switch occurs to a task that references an invalid ring buffer or an invalid DMA buffer.