From owner-freebsd-arm@freebsd.org Fri Feb 28 10:11:06 2020 Return-Path: Delivered-To: freebsd-arm@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 4B2DA25F573 for ; Fri, 28 Feb 2020 10:11:06 +0000 (UTC) (envelope-from dr.klepp@gmx.at) Received: from vie01a-dmta-at52-1.mx.upcmail.net (vie01a-dmta-at52-1.mx.upcmail.net [62.179.121.142]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 48TQKh0bWRz3GsN for ; Fri, 28 Feb 2020 10:11:03 +0000 (UTC) (envelope-from dr.klepp@gmx.at) Received: from [172.31.216.41] (helo=vie01a-pemc-psmtp-at50) by vie01a-dmta-at52.mx.upcmail.net with esmtp (Exim 4.92) (envelope-from ) id 1j7cQr-0002j7-TT for freebsd-arm@freebsd.org; Fri, 28 Feb 2020 10:59:45 +0100 Received: from x61.lan ([85.126.97.210]) by vie01a-pemc-psmtp-at50 with SMTP @ mailcloud.upcmail.net id 89zl2201C4YLlkt0B9zlpx; Fri, 28 Feb 2020 10:59:45 +0100 X-SourceIP: 85.126.97.210 X-CNFS-Analysis: v=2.2 cv=O6RJhF1W c=1 sm=2 tr=0 cx=a_idp_f a=/Ac8Q0O/YFE5LOLfUiYZVw==:117 a=/Ac8Q0O/YFE5LOLfUiYZVw==:17 a=jpOVt7BSZ2e4Z31A5e1TngXxSK0=:19 a=8nJEP1OIZ-IA:10 a=6I5d2MoRAAAA:8 a=LXL8el5rAAAA:8 a=qtnStx65R0G7JHmGlggA:9 a=wPNLvfGTeEIA:10 a=IjZwj45LgO3ly-622nXo:22 a=VxrG4A_UoVp_6Idp4yW2:22 From: "Dr. Nikolaus Klepp" To: freebsd-arm@freebsd.org Subject: Re: sizeof(struct kevent) on ARM 32-bit Date: Fri, 28 Feb 2020 11:00:10 +0100 User-Agent: KMail/1.9.10 References: <20200228114800.60a39b65@i11.co> In-Reply-To: <20200228114800.60a39b65@i11.co> X-KMail-QuotePrefix: > MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <202002281100.11027.dr.klepp@gmx.at> X-Rspamd-Queue-Id: 48TQKh0bWRz3GsN X-Spamd-Bar: +++++++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=fail (mx1.freebsd.org: domain of dr.klepp@gmx.at does not designate 62.179.121.142 as permitted sender) smtp.mailfrom=dr.klepp@gmx.at X-Spamd-Result: default: False [7.80 / 15.00]; ARC_NA(0.00)[]; R_SPF_FAIL(1.00)[-all]; FROM_HAS_DN(0.00)[]; FREEMAIL_FROM(0.00)[gmx.at]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; DMARC_NA(0.00)[gmx.at]; NEURAL_SPAM_MEDIUM(1.00)[0.997,0]; RCPT_COUNT_ONE(0.00)[1]; RCVD_COUNT_THREE(0.00)[3]; RCVD_TLS_LAST(0.00)[]; NEURAL_SPAM_LONG(1.00)[1.000,0]; MID_CONTAINS_FROM(1.00)[]; FROM_NAME_HAS_TITLE(1.00)[dr]; IP_SCORE_FREEMAIL(0.00)[]; IP_SCORE(0.00)[ipnet: 62.179.0.0/17(1.11), asn: 6830(3.70), country: AT(-0.10)]; FORGED_MUA_KMAIL_MSGID(3.00)[]; RCVD_IN_DNSWL_LOW(-0.10)[142.121.179.62.list.dnswl.org : 127.0.5.1]; R_DKIM_NA(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmx.at]; ASN(0.00)[asn:6830, ipnet:62.179.0.0/17, country:AT]; MIME_TRACE(0.00)[0:+]; GREYLIST(0.00)[pass,body]; FROM_EQ_ENVFROM(0.00)[] X-Spam: Yes X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Feb 2020 10:11:06 -0000 Hi! Anno domini 2020 Fri, 28 Feb 11:48:00 +0200 Nick Kostirya via freebsd-arm scripsit: > Hello. > > Why sizeof(struct kevent) is 64 on ARM 32-bit? > It is like as on amd64. But why? > And struct timespec also is 16, but 8. > > > i386 (FreeBSD 12.1): > sizeof(struct kevent) = 56 > sizeof(struct timespec) = 8 > sizeof(intptr_t) = 4 > > amd64: > sizeof(struct kevent) = 64 > sizeof(struct timespec) = 16 > sizeof(intptr_t) = 8 > > ARM 32-bit: > sizeof(struct kevent) = 64 > sizeof(struct timespec) = 16 > sizeof(intptr_t) = 4 > > Nick. > _______________________________________________ > freebsd-arm@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" > Structure packing, most likely. http://www.catb.org/esr/structure-packing/ Nik -- Please do not email me anything that you are not comfortable also sharing with the NSA, CIA ...