svn commit: r347623 - head/sys/compat/linuxkpi/common/include/linux
Johannes Lundberg
johalun at FreeBSD.org
Wed May 15 17:48:13 UTC 2019
Author: johalun
Date: Wed May 15 17:48:11 2019
New Revision: 347623
URL: https://svnweb.freebsd.org/changeset/base/347623
Log:
LinuxKPI: Move {lower|upper}_32_bits macros from port to base.
This patch is part of D19565
Reviewed by: hps
Approved by: imp (mentor), hps
MFC after: 1 week
Modified:
head/sys/compat/linuxkpi/common/include/linux/compiler.h
Modified: head/sys/compat/linuxkpi/common/include/linux/compiler.h
==============================================================================
--- head/sys/compat/linuxkpi/common/include/linux/compiler.h Wed May 15 17:44:25 2019 (r347622)
+++ head/sys/compat/linuxkpi/common/include/linux/compiler.h Wed May 15 17:48:11 2019 (r347623)
@@ -81,6 +81,12 @@
#define barrier() __asm__ __volatile__("": : :"memory")
+#if defined(LINUXKPI_VERSION) && LINUXKPI_VERSION >= 50000
+/* Moved from drm_os_freebsd.h */
+#define lower_32_bits(n) ((u32)(n))
+#define upper_32_bits(n) ((u32)(((n) >> 16) >> 16))
+#endif
+
#define ___PASTE(a,b) a##b
#define __PASTE(a,b) ___PASTE(a,b)
More information about the svn-src-head
mailing list