Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 May 2020 09:10:21 +0000 (UTC)
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r361178 - stable/12/sys/compat/linuxkpi/common/include/linux
Message-ID:  <202005180910.04I9AL9R051626@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hselasky
Date: Mon May 18 09:10:21 2020
New Revision: 361178
URL: https://svnweb.freebsd.org/changeset/base/361178

Log:
  MFC r360119:
  Implement aligned LinuxKPI types for u16, u32 and u64.
  Makes a difference for 32-bit platforms mostly.
  
  Sponsored by:	Mellanox Technologies

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

Modified: stable/12/sys/compat/linuxkpi/common/include/linux/types.h
==============================================================================
--- stable/12/sys/compat/linuxkpi/common/include/linux/types.h	Mon May 18 09:09:34 2020	(r361177)
+++ stable/12/sys/compat/linuxkpi/common/include/linux/types.h	Mon May 18 09:10:21 2020	(r361178)
@@ -53,6 +53,10 @@ typedef uint32_t __be32;
 typedef uint64_t __le64;
 typedef uint64_t __be64;
 
+typedef uint16_t __aligned_u16 __aligned(sizeof(uint16_t));
+typedef uint32_t __aligned_u32 __aligned(sizeof(uint32_t));
+typedef uint64_t __aligned_u64 __aligned(sizeof(uint64_t));
+
 typedef unsigned short ushort;
 typedef unsigned int    uint;
 typedef unsigned long ulong;



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