Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Mar 2012 17:36:53 +0000 (UTC)
From:      Oleksandr Tymoshenko <gonzo@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r233316 - head/sys/sys
Message-ID:  <201203221736.q2MHart2034363@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: gonzo
Date: Thu Mar 22 17:36:53 2012
New Revision: 233316
URL: http://svn.freebsd.org/changeset/base/233316

Log:
  Fix PMC syscall on 64-bit big endian systems.
  
  Sycall argument is pointer to array of register_t values. Casting it to
  pointer to structure with fields of size smaller then register_t we rely
  on compiler-dependent memory layout of structure.
  
  Tested on: mips64 and amd64 systems

Modified:
  head/sys/sys/pmc.h

Modified: head/sys/sys/pmc.h
==============================================================================
--- head/sys/sys/pmc.h	Thu Mar 22 17:04:49 2012	(r233315)
+++ head/sys/sys/pmc.h	Thu Mar 22 17:36:53 2012	(r233316)
@@ -589,7 +589,7 @@ struct pmc_op_getmsr {
  */
 
 struct pmc_syscall_args {
-	uint32_t	pmop_code;	/* one of PMC_OP_* */
+	register_t	pmop_code;	/* one of PMC_OP_* */
 	void		*pmop_data;	/* syscall parameter */
 };
 



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