白丝美女被狂躁免费视频网站,500av导航大全精品,yw.193.cnc爆乳尤物未满,97se亚洲综合色区,аⅴ天堂中文在线网官网

Providing exception stack management using stack panic fault exceptions in processor-based devices

專利號(hào)
US11175926B2
公開日期
2021-11-16
申請(qǐng)人
Microsoft Technology Licensing, LLC(US WA Redmond)
發(fā)明人
Thomas Andrew Sartorius; Michael Scott McIlvaine; James Norris Dieffenderfer; Aaron S. Giles
IPC分類
G06F9/38; G06F9/30; G06F11/07
技術(shù)領(lǐng)域
exception,panic,stack,fault,handler,processor,store,device,in,registers
地域: WA WA Redmond

摘要

Providing exception stack management using stack panic fault exceptions in processor-based devices is disclosed. In this regard, a processor device defines a “stack panic fault exception” that may be raised upon execution of an exception handler store operation attempting to write state data into an exception stack, and provides a dedicated plurality of stack panic fault exception state registers in which stack panic fault exception state data may be saved. Upon detecting a first exception, the processor device transfers program control to an exception handler for the first exception. If a second exception occurs upon execution of a store operation in the exception handler, the processor device determines that the second exception should be handled as a stack panic fault exception, saves the stack panic fault exception state data in the stack panic fault exception state registers, and transfers program control to a stack panic fault exception handler.

說(shuō)明書

Conventionally, this issue has been addressed by using one of two approaches to prevent the occurrence of a second exception. Under the first approach, the exception handler takes additional steps to ensure that a second exception cannot occur when the exception handler attempts to store state data for the first exception. For example, the processor-based device may allocate dedicated memory pages for the exception stack that are guaranteed to always be accessible, and the exception handler may include an instruction sequence(s) to guarantee that a stack pointer used to access the exception stack can never reference an address outside the dedicated memory pages. The second approach requires that the exception handler take additional steps to precheck the stack pointer's value before attempting to store state data. If the exception handler determines that use of the stack pointer will result in a second exception, the exception handler may either store the state data in an alternate location, or may correct the stack pointer value so that use of the stack pointer will no longer lead to a second exception. Both of these approaches, though, may require additional processing and/or additional system resources that may result in reduced processor performance and reduced system flexibility.

Accordingly, it is desirable to provide a mechanism for exception stack management to ensure that exception state data for a first exception can be successfully preserved even if a second exception occurs within the exception handler, while avoiding the performance penalties incurred by existing mechanisms.

SUMMARY

權(quán)利要求

1
微信群二維碼
意見反饋