Skip to content

Commit

Permalink
Rollup merge of rust-lang#104793 - nicholasbishop:bishop-add-efiapi, …
Browse files Browse the repository at this point in the history
…r=JohnTitor

unstable-book: Add page for the `abi_efiapi` feature

Tracking issue for `abi_efiapi`: rust-lang#65815
  • Loading branch information
matthiaskrgr committed Nov 25, 2022
2 parents 5a31a74 + bed85a4 commit e4df8fb
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions src/doc/unstable-book/src/language-features/abi-efiapi.md
Original file line number Diff line number Diff line change
@@ -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/

0 comments on commit e4df8fb

Please sign in to comment.