Skip to content

Commit

Permalink
uefi-macros: Call set_image_handle from the entry macro
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasbishop committed May 2, 2024
1 parent 9b75540 commit b325e72
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions uefi-macros/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# uefi-macros - [Unreleased]

## Changed
- The `entry` macro now sets the global system table pointer with `uefi::set_system_table`.

## Removed
- Removed the `cstr8` and `cstr16` macros. Use the declarative macros of the
same names exported by the `uefi` crate as a replacement.
Expand Down
1 change: 1 addition & 0 deletions uefi-macros/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ pub fn entry(args: TokenStream, input: TokenStream) -> TokenStream {
parse_quote! {
unsafe {
#system_table_ident.boot_services().set_image_handle(#image_handle_ident);
::uefi::table::set_system_table(#system_table_ident.as_ptr().cast());
}
},
);
Expand Down

0 comments on commit b325e72

Please sign in to comment.