diff options
| author | Nicholas Bishop <nbishop@nbishop.net> | 2022-11-23 16:30:50 -0500 |
|---|---|---|
| committer | Nicholas Bishop <nbishop@nbishop.net> | 2022-11-23 16:32:53 -0500 |
| commit | bed85a424650fbd96049a586e9ea707c0555d0ae (patch) | |
| tree | 4f846707ccdd312b927dfa77905fc91d241651b3 | |
| parent | 83356b78c4ff3e7d84e977aa6143793545967301 (diff) | |
| download | rust-bed85a424650fbd96049a586e9ea707c0555d0ae.tar.gz rust-bed85a424650fbd96049a586e9ea707c0555d0ae.zip | |
unstable-book: Add page for the `abi_efiapi` feature
| -rw-r--r-- | src/doc/unstable-book/src/language-features/abi-efiapi.md | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/doc/unstable-book/src/language-features/abi-efiapi.md b/src/doc/unstable-book/src/language-features/abi-efiapi.md new file mode 100644 index 00000000000..11ef0cfdb14 --- /dev/null +++ b/src/doc/unstable-book/src/language-features/abi-efiapi.md @@ -0,0 +1,23 @@ +# `abi_efiapi` + +The tracking issue for this feature is: [#65815] + +[#65815]: https://github.com/rust-lang/rust/issues/65815 + +------------------------ + +The `efiapi` calling convention can be used for defining a function with +an ABI compatible with the UEFI Interfaces as defined in the [UEFI +Specification]. + +Example: + +```rust +#![feature(abi_efiapi)] + +extern "efiapi" { fn f1(); } + +extern "efiapi" fn f2() { todo!() } +``` + +[UEFI Specification]: https://uefi.org/specs/UEFI/2.10/ |
