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 the libstd-modifications needed for the L4Re target #43972

Merged
merged 6 commits into from
Sep 14, 2017

Commits on Sep 8, 2017

  1. Match c_char definitions and enable signal reset for L4Re

    *   Match definition of c_char in os/raw.rs with the libc definition
    
        Due to historic reasons, os/raw.rs redefines types for c_char from
        libc, but these didn't match. Now they do :).
    
    *   Enable signal reset on exec for L4Re
    
        L4Re has full signal emulation and hence it needs to reset the
        signal set of the child with sigemptyset. However, gid and uid
        should *not* be set.
    humenda authored and Tobias Schaffner committed Sep 8, 2017
    Configuration menu
    Copy the full SHA
    2cf0a4a View commit details
    Browse the repository at this point in the history
  2. Add modifications needed for L4re in libstd

    This commit adds the needed modifications to compile the std crate
    for the L4 Runtime environment (L4Re).
    
    A target for the L4Re was introduced in commit:
    c151220
    
    In many aspects implementations for linux also apply for the L4Re
    microkernel.
    
    Two uncommon characteristics had to be resolved:
    * L4Re has no network funktionality
    * L4Re has a maximum stacksize of 1Mb for threads
    
    Co-authored-by: Sebastian Humenda <[email protected]>
    Tobias Schaffner and Sebastian Humenda committed Sep 8, 2017
    Configuration menu
    Copy the full SHA
    9bbc6db View commit details
    Browse the repository at this point in the history
  3. Re-enable networking module fo rL4Re

    As suggested in the discussion of PR rust-lang#43972, std should provide a uniform API to
    all platforms. Since there's no networking on L4Re, this now is a module in
    `sys::net` providing types and functions/methods returning an error for each
    action.
    humenda authored and Tobias Schaffner committed Sep 8, 2017
    Configuration menu
    Copy the full SHA
    0b77464 View commit details
    Browse the repository at this point in the history
  4. Move the stack size value for L4Re to the min_stack_size function

    humenda authored and Tobias Schaffner committed Sep 8, 2017
    Configuration menu
    Copy the full SHA
    40794bf View commit details
    Browse the repository at this point in the history
  5. Update liblibc submodule to include latest uclibc changes

    Tobias Schaffner committed Sep 8, 2017
    Configuration menu
    Copy the full SHA
    5d1a9d7 View commit details
    Browse the repository at this point in the history

Commits on Sep 13, 2017

  1. Move default stack min size to thread implementations

    The default min stack size value is smaller on l4re and therefore
    this value has to be different depending on the platform.
    Tobias Schaffner authored and humenda committed Sep 13, 2017
    Configuration menu
    Copy the full SHA
    b2b5063 View commit details
    Browse the repository at this point in the history