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

wasm: Finish TLS & shared-memory implementation #68

Merged
merged 6 commits into from
Jul 15, 2023

Commits on Jul 10, 2023

  1. Configuration menu
    Copy the full SHA
    b9dfb15 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ec5891a View commit details
    Browse the repository at this point in the history

Commits on Jul 11, 2023

  1. Configuration menu
    Copy the full SHA
    d2aec48 View commit details
    Browse the repository at this point in the history

Commits on Jul 12, 2023

  1. wasm: fix synthetic tls functions

    Fixes memory_init by making timeout a i64 instead of i32.
    Also fixes tls_init by setting the __tls_base global instead of
    retrieving it and correctly writing the 0 byte as u8 rather than
    as u32.
    Luukdegram committed Jul 12, 2023
    Configuration menu
    Copy the full SHA
    54d3217 View commit details
    Browse the repository at this point in the history

Commits on Jul 13, 2023

  1. wasm: ensure __wasm_init_memory will be called

    When we have shared-memory, the memory will be initialized during
    module initialization. To ensure this is being done, we set the
    mentioned function as the entrypoint of the WebAssembly module.
    This function will be called upon thread creation too, to ensure
    the memory is correctly initialized. The execution of the first
    startup will then continue with `__start` (when available).
    Luukdegram committed Jul 13, 2023
    Configuration menu
    Copy the full SHA
    af72281 View commit details
    Browse the repository at this point in the history

Commits on Jul 15, 2023

  1. wasm: fix __wasm_init_memory implementation

    We were writing the values as unsigned integers, causing OOB memory
    reads. We now correctly write the constants as signed integers by
    first bitcasting them.
    Luukdegram committed Jul 15, 2023
    Configuration menu
    Copy the full SHA
    9d5db7e View commit details
    Browse the repository at this point in the history