svn commit: r327507 - in head/sysutils/sg3_utils: . files

Xin LI delphij at FreeBSD.org
Tue Sep 17 22:48:51 UTC 2013


Author: delphij
Date: Tue Sep 17 22:48:50 2013
New Revision: 327507
URL: http://svnweb.freebsd.org/changeset/ports/327507

Log:
  Make sure that the buffers defined as global variables are aligned
  with page boundary.
  
  Tested by:	dwhite

Added:
  head/sysutils/sg3_utils/files/
  head/sysutils/sg3_utils/files/patch-src__sg_ses.c   (contents, props changed)
Modified:
  head/sysutils/sg3_utils/Makefile

Modified: head/sysutils/sg3_utils/Makefile
==============================================================================
--- head/sysutils/sg3_utils/Makefile	Tue Sep 17 22:34:35 2013	(r327506)
+++ head/sysutils/sg3_utils/Makefile	Tue Sep 17 22:48:50 2013	(r327507)
@@ -3,6 +3,7 @@
 
 PORTNAME=	sg3_utils
 PORTVERSION=	1.36
+PORTREVISION=	1
 CATEGORIES=	sysutils
 MASTER_SITES=	http://sg.danny.cz/sg/p/
 EXTRACT_SUFX=	.tgz

Added: head/sysutils/sg3_utils/files/patch-src__sg_ses.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/sg3_utils/files/patch-src__sg_ses.c	Tue Sep 17 22:48:50 2013	(r327507)
@@ -0,0 +1,17 @@
+--- ./src/sg_ses.c.orig	2013-05-08 06:21:30.000000000 -0700
++++ ./src/sg_ses.c	2013-09-17 15:31:55.127287996 -0700
+@@ -210,10 +210,10 @@
+ static struct join_row_t join_arr[MX_JOIN_ROWS];
+ static struct join_row_t * join_arr_lastp = join_arr + MX_JOIN_ROWS - 1;
+ 
+-static unsigned char enc_stat_rsp[MX_ALLOC_LEN];
+-static unsigned char elem_desc_rsp[MX_ALLOC_LEN];
+-static unsigned char add_elem_rsp[MX_ALLOC_LEN];
+-static unsigned char threshold_rsp[MX_ALLOC_LEN];
++static unsigned char enc_stat_rsp[MX_ALLOC_LEN] __attribute__ ((aligned (4096)));
++static unsigned char elem_desc_rsp[MX_ALLOC_LEN] __attribute__ ((aligned (4096)));
++static unsigned char add_elem_rsp[MX_ALLOC_LEN] __attribute__ ((aligned (4096)));
++static unsigned char threshold_rsp[MX_ALLOC_LEN] __attribute__ ((aligned (4096)));
+ static int enc_stat_rsp_len;
+ static int elem_desc_rsp_len;
+ static int add_elem_rsp_len;


More information about the svn-ports-all mailing list