From owner-freebsd-alpha Thu May 25 10: 3:47 2000 Delivered-To: freebsd-alpha@freebsd.org Received: from news.uni-kl.de (news.uni-kl.de [131.246.137.51]) by hub.freebsd.org (Postfix) with SMTP id 9896637B52A for ; Thu, 25 May 2000 10:03:43 -0700 (PDT) (envelope-from naddy@unix-ag.uni-kl.de) Received: from sushi.unix-ag.uni-kl.de ( root@sushi.unix-ag.uni-kl.de [131.246.89.13] ) by news.uni-kl.de id aa29735 for ; 25 May 2000 19:03 MESZ Received: from fettuccini.unix-ag.uni-kl.de (fettuccini.unix-ag.uni-kl.de [131.246.89.27]) by sushi.unix-ag.uni-kl.de (8.9.3/8.9.1) with ESMTP id TAA13756 for ; Thu, 25 May 2000 19:03:36 +0200 Received: (from naddy@localhost) by fettuccini.unix-ag.uni-kl.de (8.9.3/8.9.3) id TAA80388 for freebsd-alpha@freebsd.org; Thu, 25 May 2000 19:03:28 +0200 (CEST) (envelope-from naddy) Date: Thu, 25 May 2000 19:03:28 +0200 From: Christian Weisgerber To: freebsd-alpha@freebsd.org Subject: uac.c Message-ID: <20000525190328.A80312@fettuccini.unix-ag.uni-kl.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I'm looking at uac.c, and there are some things I don't understand. | #include | #include | #include | extern int sysarch(int, char *); Why isn't sysarch() declared in any header file? | struct parms { | u_int64_t uac; | }; | int | alpha_setuac(u_int64_t uac) | { | struct parms p; | | p.uac = uac; | return (sysarch(ALPHA_SET_UAC, (char *)&p)); | } The use of a struct to pass a single 64-bit int seems bizarre. Is this used to force proper alignment? (Since char* presumably isn't guaranteed to be quadword-aligned.) -- Christian "naddy" Weisgerber naddy@unix-ag.uni-kl.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message