Double Faults (zh-CN) #1214
Replies: 2 comments 5 replies
-
Well, first, this is a very good tutorial. A quick question: when I try to repeat the page fault at 0xdeadbeef in very first example on macbook, I got this following message: "panic at 'misaligned pointer dereference: address must be a multiple of 0x8 but is 0xdeadbeef' src/main.rs:21:9" More interestingly, the fault is the same even after I defined the double_fault handler. Looks the double_fault_handler is never triggered. My platform is Macbook Big Sur Intel based. What could be the like cause of the problem? Thanks! |
Beta Was this translation helpful? Give feedback.
-
As a meta question, surely the English-language blog post is not supposed to show this "zh-CN" discussion thread? |
Beta Was this translation helpful? Give feedback.
-
Double Faults (zh-CN)
在这篇文章中,我们会探索 double fault 异常的细节,它的触发条件是调用错误处理函数失败。通过捕获该异常,我们可以阻止致命的 triple faults 异常导致系统重启。为了尽可能避免 triple faults ,我们会在一个独立的内核栈配置 中断栈表 来捕捉 double fault…
https://os.phil-opp.com/zh-CN/double-fault-exceptions/
Beta Was this translation helpful? Give feedback.
All reactions