-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pvh: Move note definition/declaration to Rust
The structure of the ELF note can be done with pure Rust code. We can definie the Name and Desc types and use a static struct to hold the note. Due to Rust's limitations on "pointer-to-integer cast", we have to have Desc have a function pointer type, which means that field is now 8 bytes long instead of 4. However, this doesn't seem to be an issue. The binary still works w/ PVH Boot on QEMU and CH. Signed-off-by: Joe Richey <[email protected]>
- Loading branch information
Showing
3 changed files
with
34 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
global_asm!(include_str!("note.s")); | ||
global_asm!(include_str!("ram32.s")); | ||
global_asm!(include_str!("ram64.s")); | ||
global_asm!(include_str!("gdt64.s")); |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters