首页> 外国专利> Apparatus and method for providing simultaneous local and global addressing using software to distinguish between local and global addresses

Apparatus and method for providing simultaneous local and global addressing using software to distinguish between local and global addresses

机译:使用软件来提供本地和全局同时寻址以区分本地和全局地址的设备和方法

摘要

An apparatus and method provide simultaneous local and global addressing capabilities in a computer system. A global address space is defined that may be accessed by all processes. In addition, each process has a local address space that is local (and therefore available) only to that process. An address space processor is implemented in software to perform system functions that distinguish between local addresses and global addresses. In the preferred embodiments, the local address space has a size that is a multiple of the size of a segment of global address space. When the hardware indicates a page fault, the address space processor determines whether the address being translated is a local address or a global address. If the address is a local address, the address space processor uses a local directory to process the page fault. If the address is a global address, the address space processor uses a global directory to process the page fault. When the hardware indicates an addressing error because a computed address crosses a global segment boundary, the address space processor determines whether the address is a local address or a global address. If the address is a global address, the address space processor indicates an addressing error. If the address is a local address, the address space processor determines whether the address is within the process' local address space, and indicates an addressing error if the address is outside the process' local address space. Instructions are allowed to operate on both local and global addresses because the address space processor handles either type of address whenever software assistance is required, such as for servicing a page fault or checking a segment boundary crossing. In addition, the address space processor dynamically checks the addressing compatibility of called code before passing control to the called code.
机译:一种设备和方法在计算机系统中同时提供本地和全局寻址能力。定义了可以由所有进程访问的全局地址空间。另外,每个进程都有一个本地地址空间,该地址空间仅对该进程本地(因此可用)。地址空间处理器以软件实现,以执行区分本地地址和全局地址的系统功能。在最佳实施例中,本地地址空间的大小是全局地址空间段的大小的倍数。当硬件指示页面错误时,地址空间处理器将确定要转换的地址是本地地址还是全局地址。如果该地址是本地地址,则地址空间处理器将使用本地目录来处理页面错误。如果该地址是全局地址,则地址空间处理器将使用全局目录来处理页面错误。当由于计算的地址越过全局段边界而导致硬件指示寻址错误时,地址空间处理器将确定该地址是本地地址还是全局地址。如果该地址是全局地址,则地址空间处理器指示寻址错误。如果该地址是本地地址,则地址空间处理器确定该地址是否在进程的本地地址空间之内,如果该地址在进程的本地地址空间之外,则指示寻址错误。指令可以在本地和全局地址上运行,因为只要需要软件辅助,例如服务于页面错误或检查段边界交叉,地址空间处理器就可以处理这两种地址。另外,地址空间处理器在将控制权传递给被调用代码之前动态检查被调用代码的寻址兼容性。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号