Missed macro when adding FreeBSD 13.1

Also add the names of some new FreeBSD 14 syscalls (not yet
inplemented in Valgrind).
This commit is contained in:
Paul Floyd 2022-04-06 20:51:54 +02:00
parent bc4dc04d5f
commit f540c79937
2 changed files with 9 additions and 2 deletions

View File

@ -594,7 +594,7 @@ UInt VG_(get_StackTrace_wrk) ( ThreadId tid_if_known,
VG_(printf)(" ipsS[%d]=%#08lx rbp %#08lx rsp %#08lx\n",
i-1, ips[i-1], uregs.xbp, uregs.xsp);
# if defined(VGO_darwin) || (defined(VGO_freebsd) && (FREEBSD_VERS < FREEBSD_13))
# if defined(VGO_darwin) || (defined(VGO_freebsd) && (FREEBSD_VERS < FREEBSD_13_0))
if (VG_(is_valid_tid)(tid_if_known) &&
VG_(is_in_syscall)(tid_if_known) &&
i < max_n_ips) {

View File

@ -3856,6 +3856,7 @@ POST(sys_swapcontext)
POST_MEM_WRITE( ARG1, sizeof(struct vki_ucontext) );
}
// @todo PJF In FreeBSD 14 and onwards this is SYS_freebsd13_swapoff
// SYS_swapoff 424
// int swapoff(const char *special);
PRE(sys_swapoff)
@ -6245,7 +6246,7 @@ PRE(sys___specialfd)
PRE_MEM_READ("__specialfd(req)", (Addr)ARG2, ARG3);
}
#endif // (FREEBSD_VERS >= FREEBSD_13)
#endif // (FREEBSD_VERS >= FREEBSD_13_0)
#undef PRE
#undef POST
@ -6956,6 +6957,12 @@ const SyscallTableEntry ML_(syscall_table)[] = {
// unimpl __NR_aio_readv 579
#endif
#if (FREEBSD_VERS >= FREEBSD_14)
// unimpl __NR_fspacectl 580
// unimpl __NR_sched_getcpu 581
// unimpl __NR_swapoff 582
#endif
BSDX_(__NR_fake_sigreturn, sys_fake_sigreturn), // 1000, fake sigreturn
};