首页> 外国专利> Reporting delayed coprocessor exceptions to code threads having caused the exceptions by saving and restoring exception state during code thread switching

Reporting delayed coprocessor exceptions to code threads having caused the exceptions by saving and restoring exception state during code thread switching

机译:通过在代码线程切换期间保存和恢复异常状态,将延迟的协处理器异常报告给引起异常的代码线程

摘要

Save-Exception-State and Restore-Exception-State primitives are defined in the operating system and are used to confine the reporting of delayed asynchronous coprocessor exceptions to the respective code threads that generate the exceptions. The Save-Exception-State primitive saves the coprocessor exception state pertinent to the currently executed code thread, and the Restore-Exception-State primitive restores a selected one of the exception states having been saved. The Save- Exception-State primitive synchronizes the coprocessor, disables use of the coprocessor, saves any pending coprocessor exception state into memory, and clears the coprocessor exception state information from the coprocessor or a "thread descriptor" area of memory allocated to the current code thread. The Restore-Exception-State primitive synchronizes the coprocessor, disables use of the coprocessor, reports any pending exceptions in the coprocessor, and restores the saved exception state into a respective code thread descriptor in memory allocated to the code thread having generated the saved exception state information. The restored exception state is reported by a "Coprocessor-Disabled" exception handler that checks for any exceptions pending in the coprocessor or thread descriptor, when necessary stores the coprocessor state information from the process which last executed a coprocessor instruction, when necessary retrieves the coprocessor state information for the current process, reports any pending exceptions, and reenables use of the coprocessor.
机译:Save-Exception-State和Restore-Exception-State原语在操作系统中定义,用于将延迟异步协处理器异常的报告限制在生成异常的各个代码线程中。 Save-Exception-State原语保存与当前执行的代码线程相关的协处理器异常状态,Restore-Exception-State原语恢复所选的已保存的异常状态之一。 Save-Exception-State原语将同步协处理器,禁用协处理器,将任何未决的协处理器异常状态保存到内存中,并从协处理器或分配给当前代码的内存“线程描述符”区域清除协处理器异常状态信息。线。 Restore-Exception-State原语将同步协处理器,禁用协处理器的使用,报告协处理器中所有未决的异常,并将保存的异常状态还原到分配给已生成保存的异常状态的代码线程的内存中的相应代码线程描述符中信息。恢复的异常状态由“禁用协处理器”的异常处理程序报告,该异常处理程序检查协处理器或线程描述符中是否有任何未决异常,并在必要时存储上次执行协处理器指令的进程中的协处理器状态信息,并在必要时检索协处理器状态信息,报告当前进程,报告所有未决的异常,并重新启用协处理器。

著录项

  • 公开/公告号US5197138A

    专利类型

  • 公开/公告日1993-03-23

    原文格式PDF

  • 申请/专利权人 DIGITAL EQUIPMENT CORPORATION;

    申请/专利号US19890457144

  • 发明设计人 HAI HUANG;STEVEN O. HOBBS;

    申请日1989-12-26

  • 分类号G06F9/00;G06F9/46;G06F15/16;G06F15/347;

  • 国家 US

  • 入库时间 2022-08-22 04:58:34

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号