From owner-freebsd-sparc64@FreeBSD.ORG Wed Jun 3 05:25:43 2009 Return-Path: Delivered-To: sparc64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 51F141065675; Wed, 3 Jun 2009 05:25:43 +0000 (UTC) (envelope-from rea-fbsd@codelabs.ru) Received: from 0.mx.codelabs.ru (0.mx.codelabs.ru [144.206.177.45]) by mx1.freebsd.org (Postfix) with ESMTP id EEB328FC17; Wed, 3 Jun 2009 05:25:42 +0000 (UTC) (envelope-from rea-fbsd@codelabs.ru) DomainKey-Signature: a=rsa-sha1; q=dns; c=simple; s=one; d=codelabs.ru; h=Received:Date:From:To:Cc:Subject:Message-ID:Reply-To:References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To:Sender; b=otFgK3cEVSZeeEBNSf6F+DZDeDDExRbQo+AU+ObSAHTBlEdaaeffViZ8pMagBhb5zXY1ioiuMVxY7s2qnCxIcK328H1gj5DhKSEBWlT+CjH7pHCZRiY4MSEhecq32GHlD2gzgZXO5eU6w2s5L17EbAM6tVMqbzwZUH+Nx/YnE2U=; Received: from phoenix.codelabs.ru (ppp91-78-250-129.pppoe.mtu-net.ru [91.78.250.129]) by 0.mx.codelabs.ru with esmtpsa (TLSv1:AES256-SHA:256) id 1MBiyr-000K3z-RD; Wed, 03 Jun 2009 09:25:42 +0400 Date: Wed, 3 Jun 2009 09:25:38 +0400 From: Eygene Ryabinkin To: FreeBSD Tinderbox Message-ID: References: <20090602222445.2F6017302F@freebsd-current.sentex.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090602222445.2F6017302F@freebsd-current.sentex.ca> Sender: rea-fbsd@codelabs.ru Cc: marius@freebsd.org, kmacy@freebsd.org, rwatson@freebsd.org, current@freebsd.org, sparc64@freebsd.org Subject: Re: [head tinderbox] failure on sparc64/sun4v X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: rea-fbsd@codelabs.ru List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Jun 2009 05:25:43 -0000 Tue, Jun 02, 2009 at 06:24:45PM -0400, FreeBSD Tinderbox wrote: > cc -c -O2 -pipe -fno-strict-aliasing -std=c99 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc -I. -I/src/sys -I/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=15000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-builtin -mcmodel=medany -msoft-float -ffreestanding -fstack-protector -Werror /src/sys/sun4v/sun4v/machdep.c > /src/sys/sun4v/sun4v/machdep.c:192: error: size of array '__assert192' is negative > *** Error code 1 > > Stop in /obj/sun4v/src/sys/LINT. This seems to be related to the recent NETISR changes, namely, the addition of the pc_netisr member to the struct pcpu: http://svn.freebsd.org/viewvc/base/head/sys/sys/pcpu.h?r1=187679&r2=193219&diff_format=u I am not sure how large (void *) is on sun4v, but it seems to me that it is 4 bytes long, so PCPU_MD_FIELDS_PAD inside sun4v/include/pcpu.h should be compensated for this change. Something like ----- #ifdef KTR #define PCPU_MD_FIELDS_PAD (3 - (PCPU_NAME_LEN + 7) / 8) #else #define PCPU_MD_FIELDS_PAD 3 #endif ----- though I am not very sure about KTR's case. -- Eygene _ ___ _.--. # \`.|\..----...-'` `-._.-'_.-'` # Remember that it is hard / ' ` , __.--' # to read the on-line manual )/' _/ \ `-_, / # while single-stepping the kernel. `-'" `"\_ ,_.-;_.-\_ ', fsc/as # _.-'_./ {_.' ; / # -- FreeBSD Developers handbook {_.-``-' {_/ #