about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-11-25 10:44:39 +0100
committerGitHub <noreply@github.com>2022-11-25 10:44:39 +0100
commitf00c3f05bcdfdc835bc2ea6723cc17601cb218ee (patch)
tree019d78c67ae1792b7ea1b1c820cf57059639aee2 /src
parent808157bd7dd9d1b082c674e9581e18266c7501f0 (diff)
parentbed85a424650fbd96049a586e9ea707c0555d0ae (diff)
downloadrust-f00c3f05bcdfdc835bc2ea6723cc17601cb218ee.tar.gz
rust-f00c3f05bcdfdc835bc2ea6723cc17601cb218ee.zip
Rollup merge of #104793 - nicholasbishop:bishop-add-efiapi, r=JohnTitor
unstable-book: Add page for the `abi_efiapi` feature

Tracking issue for `abi_efiapi`: https://github.com/rust-lang/rust/issues/65815
Diffstat (limited to 'src')
-rw-r--r--src/doc/unstable-book/src/language-features/abi-efiapi.md23
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/