Skip to content

Commit

Permalink
Merge pull request #492 from smcv/mips
Browse files Browse the repository at this point in the history
try-syscall: Use compiler-predefined macros to detect mips ABI
  • Loading branch information
smcv authored May 10, 2022
2 parents ade6bb0 + bab52ef commit 5ba8fc3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/try-syscall.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@
#include <sys/types.h>

#if defined(_MIPS_SIM)
# if _MIPS_SIM == _MIPS_SIM_ABI32
# if _MIPS_SIM == _ABIO32
# define MISSING_SYSCALL_BASE 4000
# elif _MIPS_SIM == _MIPS_SIM_ABI64
# elif _MIPS_SIM == _ABI64
# define MISSING_SYSCALL_BASE 5000
# elif _MIPS_SIM == _MIPS_SIM_NABI32
# elif _MIPS_SIM == _ABIN32
# define MISSING_SYSCALL_BASE 6000
# else
# error "Unknown MIPS ABI"
Expand Down

0 comments on commit 5ba8fc3

Please sign in to comment.