Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Minimal Std implementation for UEFI #105861

Merged
merged 8 commits into from
Sep 24, 2023

Commits on Sep 22, 2023

  1. Add Minimal Std implementation for UEFI

    Implemented modules:
    1. alloc
    2. os_str
    3. env
    4. math
    
    Tracking Issue: rust-lang#100499
    API Change Proposal: rust-lang/libs-team#87
    
    This was originally part of rust-lang#100316. Since
    that PR was becoming too unwieldy and cluttered, and with suggestion
    from @dvdhrm, I have extracted a minimal std implementation to this PR.
    
    Signed-off-by: Ayush Singh <ayushsingh1325@gmail.com>
    Ayush1325 committed Sep 22, 2023
    Configuration menu
    Copy the full SHA
    48c6ae0 View commit details
    Browse the repository at this point in the history
  2. Fixes from PR

    Signed-off-by: Ayush Singh <ayushsingh1325@gmail.com>
    Ayush1325 committed Sep 22, 2023
    Configuration menu
    Copy the full SHA
    8e56b33 View commit details
    Browse the repository at this point in the history
  3. Handle ExitBootServices

    - Make BootServices unavailable if ExitBootServices event is signaled.
    - Use thread locals for SystemTable and ImageHandle
    
    Signed-off-by: Ayush Singh <ayushsingh1325@gmail.com>
    Ayush1325 committed Sep 22, 2023
    Configuration menu
    Copy the full SHA
    032e376 View commit details
    Browse the repository at this point in the history
  4. Add support for building std::os::uefi docs

    Signed-off-by: Ayush Singh <ayushsingh1325@gmail.com>
    Ayush1325 committed Sep 22, 2023
    Configuration menu
    Copy the full SHA
    5df24d1 View commit details
    Browse the repository at this point in the history
  5. Fixes from PR

    - Some comment fixes.
    - Make some functions unsafe.
    - Make helpers module private.
    - Rebase on master
    - Update r-efi to v4.2.0
    
    Signed-off-by: Ayush Singh <ayushsingh1325@gmail.com>
    Ayush1325 committed Sep 22, 2023
    Configuration menu
    Copy the full SHA
    7a95644 View commit details
    Browse the repository at this point in the history
  6. Use RawOsError for UEFI

    Some changes from this commit will probably be converted to its own PR.
    
    Signed-off-by: Ayush Singh <ayushsingh1325@gmail.com>
    Ayush1325 committed Sep 22, 2023
    Configuration menu
    Copy the full SHA
    40c3dac View commit details
    Browse the repository at this point in the history
  7. Rebase to master

    - Update Example
    - Add thread_parking to sys::uefi
    - Fix unsafe in unsafe errors
    - Improve docs
    - Improve os/exit
    - Some asserts
    - Switch back to atomics
    
    Signed-off-by: Ayush Singh <ayushdevel1325@gmail.com>
    Ayush1325 committed Sep 22, 2023
    Configuration menu
    Copy the full SHA
    c7e5f3c View commit details
    Browse the repository at this point in the history
  8. Fixes from PR

    - Hide Docs
    - Use repr_unpacked error
    
    Signed-off-by: Ayush Singh <ayushdevel1325@gmail.com>
    Ayush1325 committed Sep 22, 2023
    Configuration menu
    Copy the full SHA
    984ecef View commit details
    Browse the repository at this point in the history