From owner-cvs-src@FreeBSD.ORG Sat Feb 23 18:33:50 2008 Return-Path: Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5604916A406; Sat, 23 Feb 2008 18:33:50 +0000 (UTC) (envelope-from marcel@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 5209713C469; Sat, 23 Feb 2008 18:33:50 +0000 (UTC) (envelope-from marcel@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m1NIXopk014863; Sat, 23 Feb 2008 18:33:50 GMT (envelope-from marcel@repoman.freebsd.org) Received: (from marcel@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m1NIXoNv014862; Sat, 23 Feb 2008 18:33:50 GMT (envelope-from marcel) Message-Id: <200802231833.m1NIXoNv014862@repoman.freebsd.org> From: Marcel Moolenaar Date: Sat, 23 Feb 2008 18:33:50 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/boot/common bootstrap.h load_elf.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Feb 2008 18:33:50 -0000 marcel 2008-02-23 18:33:50 UTC FreeBSD src repository Modified files: sys/boot/common bootstrap.h load_elf.c Log: Add __elfN(relocation_offset). It holds the offset between the virtual (link) address and the physical (load) address. Ideally, the mapping between link and load addresses should be abstracted by the copyin(), copyout() and readin() functions, so that we don't have to add kluges in __elfN(loadimage)(). Then, we could also have paged virtual memory for the kernel. This can be important under EFI, where you need to allocate physical memory form the firmware if you want to work in all scenarios. Revision Changes Path 1.45 +3 -1 src/sys/boot/common/bootstrap.h 1.38 +27 -1 src/sys/boot/common/load_elf.c