Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 May 2019 17:48:12 +0000 (UTC)
From:      Johannes Lundberg <johalun@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r347623 - head/sys/compat/linuxkpi/common/include/linux
Message-ID:  <201905151748.x4FHmCWw047879@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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)
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201905151748.x4FHmCWw047879>