From owner-freebsd-alpha Wed Jul 10 17:24:48 2002 Delivered-To: freebsd-alpha@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6998537B400; Wed, 10 Jul 2002 17:24:45 -0700 (PDT) Received: from canning.wemm.org (canning.wemm.org [192.203.228.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1C8B943E64; Wed, 10 Jul 2002 17:24:45 -0700 (PDT) (envelope-from peter@wemm.org) Received: from fw.wemm.org (canning.wemm.org [192.203.228.65]) by canning.wemm.org (Postfix) with ESMTP id 041442A7D6; Wed, 10 Jul 2002 17:24:45 -0700 (PDT) (envelope-from peter@wemm.org) Received: from overcee.wemm.org (overcee.wemm.org [10.0.0.3]) by fw.wemm.org (Postfix) with ESMTP id 9E0404C211; Wed, 10 Jul 2002 17:24:44 -0700 (PDT) (envelope-from peter@wemm.org) Received: from wemm.org (localhost [127.0.0.1]) by overcee.wemm.org (Postfix) with ESMTP id 21B943915; Wed, 10 Jul 2002 17:24:45 -0700 (PDT) (envelope-from peter@wemm.org) X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: Andrew Gallatin Cc: John Baldwin , alpha@FreeBSD.ORG Subject: Re: uac flags in the kernel In-Reply-To: <15660.15793.332512.618094@grasshopper.cs.duke.edu> Date: Wed, 10 Jul 2002 17:24:45 -0700 From: Peter Wemm Message-Id: <20020711002445.21B943915@overcee.wemm.org> Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Andrew Gallatin wrote: > > Peter Wemm writes: > > John Baldwin wrote: > > > Ok, I have a couple of questions about the uac (unaligned access check) > > > flags in the kernel. First, I think they should be a process-wide > > > property, so we need to move them out of td_md.md_flags and into a > > > p_md.md_flags or p_md.md_uac or some such. Secondly, why do the > > > sysarch() syscalls get and set the uac of the parent process? > > > > uac works on the parent, because it would be a bit silly to work on > > itself since it is just about to exit. > > > > Actually, I'd like it to behave more like env(1)/ktrace etc. > > > > uac ... - operates on parent > > uac -p nnn ... - operates on process nnn > > uac ... /bin/sh - execs /bin/sh with specified uac settings. > > All this sounds fine, except for the -p flag, which currently disables > printing of unaligned access errors. Heh, well, that would be a slight technical problem. :-) (I wanted to use real examples, but beast.freebsd.org was down) > FWIW, the uac flags were named so as to be compatable with the Tru64 > uac routine for users migrating from Tru64. Indeed. No need to be incompatable. Cheers, -Peter -- Peter Wemm - peter@wemm.org; peter@FreeBSD.org; peter@yahoo-inc.com "All of this is for nothing if we don't go to the stars" - JMS/B5 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message