Commit 0abe537
committed
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.1 parent 25aacfd commit 0abe537
1 file changed
+2
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
325 | 325 | | |
326 | 326 | | |
327 | 327 | | |
328 | | - | |
329 | | - | |
330 | 328 | | |
331 | 329 | | |
332 | 330 | | |
| |||
409 | 407 | | |
410 | 408 | | |
411 | 409 | | |
412 | | - | |
413 | | - | |
414 | 410 | | |
415 | 411 | | |
416 | 412 | | |
| |||
772 | 768 | | |
773 | 769 | | |
774 | 770 | | |
775 | | - | |
776 | | - | |
| 771 | + | |
| 772 | + | |
777 | 773 | | |
778 | 774 | | |
779 | 775 | | |
| |||
858 | 854 | | |
859 | 855 | | |
860 | 856 | | |
861 | | - | |
862 | | - | |
863 | | - | |
864 | | - | |
865 | | - | |
866 | | - | |
867 | | - | |
868 | | - | |
869 | | - | |
870 | | - | |
871 | | - | |
872 | 857 | | |
873 | 858 | | |
874 | 859 | | |
| |||
0 commit comments