From owner-freebsd-ia64 Wed Jan 15 11:21: 6 2003 Delivered-To: freebsd-ia64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CFCE637B401 for ; Wed, 15 Jan 2003 11:21:04 -0800 (PST) Received: from ns1.xcllnt.net (209-128-86-226.bayarea.net [209.128.86.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5F82343E4A for ; Wed, 15 Jan 2003 11:21:03 -0800 (PST) (envelope-from marcel@xcllnt.net) Received: from dhcp01.pn.xcllnt.net (dhcp01.pn.xcllnt.net [192.168.4.201]) by ns1.xcllnt.net (8.12.6/8.12.6) with ESMTP id h0FJL12G054649; Wed, 15 Jan 2003 11:21:01 -0800 (PST) (envelope-from marcel@piii.pn.xcllnt.net) Received: from dhcp01.pn.xcllnt.net (localhost [127.0.0.1]) by dhcp01.pn.xcllnt.net (8.12.6/8.12.6) with ESMTP id h0FJLB2E045936; Wed, 15 Jan 2003 11:21:11 -0800 (PST) (envelope-from marcel@dhcp01.pn.xcllnt.net) Received: (from marcel@localhost) by dhcp01.pn.xcllnt.net (8.12.6/8.12.6/Submit) id h0FJLB0S045935; Wed, 15 Jan 2003 11:21:11 -0800 (PST) (envelope-from marcel) Date: Wed, 15 Jan 2003 11:21:10 -0800 From: Marcel Moolenaar To: "Daniel C. Sobral" Cc: ia64@FreeBSD.ORG Subject: Re: loader(8) Message-ID: <20030115192110.GA19079@dhcp01.pn.xcllnt.net> References: <3E25ADF4.70101@tcoip.com.br> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3E25ADF4.70101@tcoip.com.br> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-ia64@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Wed, Jan 15, 2003 at 04:52:36PM -0200, Daniel C. Sobral wrote: > > Now, I'd like to know how the loader space constraints are looking like > in the ia64 architecture, and by how much this patch increase loader's > size. The correctness constraints are higher than the space constraints: cc -O -pipe -ffreestanding -Wformat -I/nfs/freebsd/5.x/src/lib/libstand -I. -DBZ_NO_STDIO -DBZ_NO_COMPRESS -DHAVE_MEMCPY -I/nfs/freebsd/5.x/src/lib/libstand/../libz -I/nfs/freebsd/5.x/src/lib/libstand/../libc/regex -c /nfs/freebsd/5.x/src/lib/libstand/regcomp.c -o regcomp.o /nfs/freebsd/5.x/src/lib/libstand/regcomp.c: In function `allocset': /nfs/freebsd/5.x/src/lib/libstand/regcomp.c:1197: warning: cast to pointer from integer of different size /nfs/freebsd/5.x/src/lib/libstand/regcomp.c:1202: warning: cast to pointer from integer of different size /nfs/freebsd/5.x/src/lib/libstand/regcomp.c: In function `mcadd': /nfs/freebsd/5.x/src/lib/libstand/regcomp.c:1342: warning: assignment makes pointer from integer without a cast Even though the EFI loader runs in physical address mode, the loader may easily be loaded above 4GB. These need to be fixed... As for space, we don't really have special space constraints. We shouldn't bloat unnecessary of course. This applies to both on- disk and in-core space: loader old size new size ---------- ---------- ---------- loader.efi 498745 578843 skiload(*) 420928 498904 (*) My version of skiload is slightly larger (~5KB) than the "official" version because I added PAL, SAL, ACPI and EFI stubs in it to to allow mostly non-modified kernels to boot under ski and have support for SMP (given a modified ski of course). I haven't tried the regex code... -- Marcel Moolenaar USPA: A-39004 marcel@xcllnt.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ia64" in the body of the message