From owner-svn-ports-head@FreeBSD.ORG Tue Sep 17 22:48:51 2013 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 5A3F599B; Tue, 17 Sep 2013 22:48:51 +0000 (UTC) (envelope-from delphij@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 2D3252AC4; Tue, 17 Sep 2013 22:48:51 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r8HMmpAa045309; Tue, 17 Sep 2013 22:48:51 GMT (envelope-from delphij@svn.freebsd.org) Received: (from delphij@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r8HMmoso045307; Tue, 17 Sep 2013 22:48:50 GMT (envelope-from delphij@svn.freebsd.org) Message-Id: <201309172248.r8HMmoso045307@svn.freebsd.org> From: Xin LI Date: Tue, 17 Sep 2013 22:48:50 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r327507 - in head/sysutils/sg3_utils: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Sep 2013 22:48:51 -0000 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;