Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Dec 2020 14:50:56 +0000 (UTC)
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r368329 - head/stand/kshim
Message-ID:  <202012041450.0B4EouQ2024632@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hselasky
Date: Fri Dec  4 14:50:55 2020
New Revision: 368329
URL: https://svnweb.freebsd.org/changeset/base/368329

Log:
  Fix definition of int64_t and uint64_t when long is 64-bit. This gets the kernel
  shim code in line with the rest of the kernel, sys/x86/include/_types.h.
  
  MFC after:	1 week
  Sponsored by:	Mellanox Technologies // NVIDIA Networking

Modified:
  head/stand/kshim/bsd_kernel.h

Modified: head/stand/kshim/bsd_kernel.h
==============================================================================
--- head/stand/kshim/bsd_kernel.h	Fri Dec  4 14:09:12 2020	(r368328)
+++ head/stand/kshim/bsd_kernel.h	Fri Dec  4 14:50:55 2020	(r368329)
@@ -208,9 +208,17 @@ typedef unsigned int uint32_t;
 #define	_INT32_T_DECLARED
 typedef signed int int32_t;
 #define	_UINT64_T_DECLARED
+#ifndef __LP64__
 typedef unsigned long long uint64_t;
+#else
+typedef unsigned long uint64_t;
+#endif
 #define	_INT16_T_DECLARED
+#ifndef __LP64__
 typedef signed long long int64_t;
+#else
+typedef signed long int64_t;
+#endif
 
 typedef uint16_t uid_t;
 typedef uint16_t gid_t;



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