opnsense-src/sys/compat/linuxkpi/common/include/asm
Jean-Sébastien Pédron 9491ea7c68
linuxkpi: Fix atomic_long_sub() overflow
By (ab)using `atomic_long_add_return()`, `atomic_long_sub()` was making
the atomic long overflow. Indeed the underlying FreeBSD atomic is based
on an unsigned long.

Reviewed by:	manu
Approved by:	manu
Differential Revision:	https://reviews.freebsd.org/D38090
2023-01-25 22:26:54 +01:00
..
fpu copyright: chase my name and email change 2023-01-06 15:28:42 -05:00
atomic-long.h linuxkpi: Fix atomic_long_sub() overflow 2023-01-25 22:26:54 +01:00
atomic.h linuxkpi: Add cmpxchg64() in <asm/atomic.h> 2022-12-01 14:59:16 +01:00
atomic64.h linuxkpi: retire now-unused MIPS support 2022-10-17 16:31:20 -04:00
barrier.h linuxkpi: Add smp_mb__before/after_atomic 2022-08-08 15:22:35 +02:00
byteorder.h LinuxKPI: Constantly use _LINUXKPI_ prefix in include guards 2022-01-10 22:49:38 +03:00
cpufeature.h LinuxKPI: Constantly use _LINUXKPI_ prefix in include guards 2022-01-10 22:49:38 +03:00
fcntl.h LinuxKPI: Constantly use _LINUXKPI_ prefix in include guards 2022-01-10 22:49:38 +03:00
io.h LinuxKPI: add virt_to_phys() 2022-11-08 18:18:01 +00:00
iosf_mbi.h linuxkpi: Add asm/iosfmbi.h 2022-06-29 09:55:19 +02:00
msr.h LinuxKPI: Constantly use _LINUXKPI_ prefix in include guards 2022-01-10 22:49:38 +03:00
neon.h copyright: chase my name and email change 2023-01-06 15:28:42 -05:00
pgtable.h linuxkpi: pgtable: Add more defines 2022-08-18 09:46:33 +02:00
processor.h linuxkpi: Define boot_cpu_data.x86_max_cores 2022-11-11 18:43:07 +01:00
set_memory.h linuxkpi: Add asm/set_memory.h 2022-06-29 09:55:23 +02:00
smp.h LinuxKPI: Constantly use _LINUXKPI_ prefix in include guards 2022-01-10 22:49:38 +03:00
types.h LinuxKPI: Constantly use _LINUXKPI_ prefix in include guards 2022-01-10 22:49:38 +03:00
uaccess.h linuxkpi: Add user_write_access_* 2022-02-17 09:30:55 +01:00
unaligned.h LinuxKPI: add get_unaligned_le16() 2022-02-14 00:09:57 +00:00