svn commit: r348087 - stable/12/sys/compat/linuxkpi/common/include/linux

Johannes Lundberg johalun at FreeBSD.org
Wed May 22 04:02:11 UTC 2019


Author: johalun
Date: Wed May 22 04:02:10 2019
New Revision: 348087
URL: https://svnweb.freebsd.org/changeset/base/348087

Log:
  MFC r347623:
  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

Modified:
  stable/12/sys/compat/linuxkpi/common/include/linux/compiler.h
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sys/compat/linuxkpi/common/include/linux/compiler.h
==============================================================================
--- stable/12/sys/compat/linuxkpi/common/include/linux/compiler.h	Wed May 22 04:00:13 2019	(r348086)
+++ stable/12/sys/compat/linuxkpi/common/include/linux/compiler.h	Wed May 22 04:02:10 2019	(r348087)
@@ -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-all mailing list