paulfloyd / freebsd_valgrind

Git repo used to Upstream the FreeBSD Port of Valgrind
GNU General Public License v2.0
15 stars 4 forks source link

New FreeBSD 15 syscall membarrier #203

Closed paulfloyd closed 10 months ago

paulfloyd commented 10 months ago
584 AUE_NULL    STD|CAPENABLED {
        int membarrier(
            int cmd,
            unsigned flags,
            int cpu_id
        );
    }
paulfloyd commented 10 months ago

commit 22069cd2da980dd88a9c3e36c9a3b371c67e1857 (HEAD -> master, origin/master, origin/HEAD) Author: Paul Floyd pjfloyd@wanadoo.fr Date: Sun Sep 17 11:50:54 2023 +0200

FreeBSD: add syscall wrapper for membarrier (added in FreeBSD 15)

I also noticed that the Linux membarrier syscall wrapper
is out of date. It only takes one argument. Depending on the kernel
version it can also take 2 or 3 arguments (3 being the latest).