summaryrefslogtreecommitdiffstats
path: root/sys/boot
diff options
context:
space:
mode:
authortegge <tegge@FreeBSD.org>1999-02-15 17:36:58 +0000
committertegge <tegge@FreeBSD.org>1999-02-15 17:36:58 +0000
commit86c0720b63f5f31d1534841e5abb8539586de70a (patch)
treef4bf0c85a9c4cb3ddf6be306c7e712a002d0bc4f /sys/boot
parent164b54fbd5717a1b1342f963dd1c98fd7966e8db (diff)
downloadFreeBSD-src-86c0720b63f5f31d1534841e5abb8539586de70a.zip
FreeBSD-src-86c0720b63f5f31d1534841e5abb8539586de70a.tar.gz
Enable load of i386 ELF kernels with larger KVA range (e.g. starting at
0xe0100000u or 0xc0100000u instead of the usual 0xf0100000u).
Diffstat (limited to 'sys/boot')
-rw-r--r--sys/boot/common/load_elf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/boot/common/load_elf.c b/sys/boot/common/load_elf.c
index ff1f506..bc514b1 100644
--- a/sys/boot/common/load_elf.c
+++ b/sys/boot/common/load_elf.c
@@ -24,7 +24,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: load_elf.c,v 1.9 1998/10/17 03:06:38 peter Exp $
+ * $Id: load_elf.c,v 1.10 1999/01/04 18:37:41 peter Exp $
*/
#include <sys/param.h>
@@ -229,7 +229,7 @@ elf_loadimage(struct loaded_module *mp, int fd, vm_offset_t off,
firstaddr = lastaddr = 0;
if (kernel) {
#ifdef __i386__
- off = 0x10000000; /* -0xf0000000 - i386 relocates after locore */
+ off = - (off & 0xff000000u); /* i386 relocates after locore */
#else
off = 0; /* alpha is direct mapped for kernels */
#endif
OpenPOWER on IntegriCloud