Date: Wed, 27 Feb 2013 19:59:41 +0000 (UTC) From: Ian Lepore <ian@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r247413 - head/sys/boot/common Message-ID: <201302271959.r1RJxg7i082985@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: ian Date: Wed Feb 27 19:59:41 2013 New Revision: 247413 URL: http://svnweb.freebsd.org/changeset/base/247413 Log: Fix a typo that prevented booting a kernel that had virtual addresses in the elf headers. Modified: head/sys/boot/common/load_elf.c Modified: head/sys/boot/common/load_elf.c ============================================================================== --- head/sys/boot/common/load_elf.c Wed Feb 27 19:51:47 2013 (r247412) +++ head/sys/boot/common/load_elf.c Wed Feb 27 19:59:41 2013 (r247413) @@ -304,7 +304,7 @@ __elfN(loadimage)(struct preloaded_file * only adjust the entry point if it's a virtual address to begin with. */ off = -0xc0000000u; - if ((ehdr->e_entry & 0xc0000000u) == 0xc000000u) + if ((ehdr->e_entry & 0xc0000000u) == 0xc0000000u) ehdr->e_entry += off; #ifdef ELF_VERBOSE printf("ehdr->e_entry 0x%08x, va<->pa off %llx\n", ehdr->e_entry, off);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201302271959.r1RJxg7i082985>