Re:Writing an OS in Rust: Handling Exceptions
by phil-opp on Sunday March 26, 2017 @12:44PM
(#13961631)
Why is this marked as dupe? Yes, there were already posts about exception handling ( "Catching Exceptions" [1]), "Better Exception Messages" [2], and "Returning from Exceptions" [3]). These posts used naked functions and a lot of inline assembly for exception handling.
This is a new post that I published today. It uses the new `x86-interrupt` calling convention [4] instead of naked functions, which is much easier.
This is a new post that I published today. It uses the new `x86-interrupt` calling convention [4] instead of naked functions, which is much easier.
[1]: https://os.phil-opp.com/catching-exceptions.html
[2]: https://os.phil-opp.com/better-exception-messages.html
[3]: https://os.phil-opp.com/returning-from-exceptions.html
[4]: https://github.com/rust-lang/rust/pull/39832