From owner-cvs-all Tue Jan 9 22: 4:31 2001 Delivered-To: cvs-all@freebsd.org Received: from feral.com (feral.com [192.67.166.1]) by hub.freebsd.org (Postfix) with ESMTP id B0C6037B401; Tue, 9 Jan 2001 22:04:07 -0800 (PST) Received: from beppo (beppo [192.67.166.79]) by feral.com (8.9.3/8.9.3) with ESMTP id WAA12957; Tue, 9 Jan 2001 22:04:04 -0800 Date: Tue, 9 Jan 2001 22:04:03 -0800 (PST) From: Matthew Jacob Reply-To: mjacob@feral.com To: Warner Losh Cc: Matt Jacob , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/alpha/include bus.h In-Reply-To: <200101100441.f0A4f2s58670@harmony.village.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > In message <200101091817.f09IHng10622@freefall.freebsd.org> Matt Jacob writes: > : me that BUS_SPACE_UNRESTRICTED should b ~0UL, not ~0. > > Would this impact the 10E6 uses of ~0 in the bus_alloc_resource calls > we have? int foo() { bar(~0); } int zoo() { bar1(~0UL); } yields (for alpha, with -O): .file 1 "x.c" .version "01.01" .set noat gcc2_compiled.: .text .align 5 .globl foo .ent foo foo: .frame $30,16,$26,0 .mask 0x4000000,-16 ldgp $29,0($27) $foo..ng: lda $30,-16($30) stq $26,0($30) .prologue 1 lda $16,-1 jsr $26,bar ldgp $29,0($26) ldq $26,0($30) lda $30,16($30) ret $31,($26),1 .end foo .align 5 .globl zoo .ent zoo zoo: .frame $30,16,$26,0 .mask 0x4000000,-16 ldgp $29,0($27) $zoo..ng: lda $30,-16($30) stq $26,0($30) .prologue 1 lda $16,-1 jsr $26,bar1 ldgp $29,0($26) ldq $26,0($30) lda $30,16($30) ret $31,($26),1 .end zoo .ident "GCC: (GNU) 2.95.3 20010101 (prerelease)" Sorta looks the same to me.... -matt To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message