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

Fix the loongarch64 kernel ABI #3007

Merged
merged 1 commit into from Nov 27, 2022
Merged

Fix the loongarch64 kernel ABI #3007

merged 1 commit into from Nov 27, 2022

Commits on Nov 20, 2022

  1. Fix the loongarch64 kernel ABI

    The initial loongarch64 support code went in too early, even before the
    upstream kernel ABI has finalized, and was not adjusted since then. No
    one with enough knowledge of LoongArch was involved in the initial
    review, so we have been shipping broken LoongArch support, but luckily
    the rustc port is not merged yet so no real damage has been done.
    
    Fix the following discrepancies:
    
    - There is no longer {g,s}etrlimit, only prlimit64.
    - There is no longer fstat and newfstatat, only statx.
    - MINSIGSTKSZ and SIGSTKSZ now have different values.
    - The binary sysctl syscall was removed from Linux long before the
      existence of upstream Linux/LoongArch port (5.5 vs 5.19) so even a
      wrapper does not make sense.
    
    There might be more but these are the most obvious.
    xen0n committed Nov 20, 2022
    Configuration menu
    Copy the full SHA
    0abe537 View commit details
    Browse the repository at this point in the history