1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-17 10:26:15 +00:00

Enable load of i386 ELF kernels with larger KVA range (e.g. starting at

0xe0100000u or 0xc0100000u instead of the usual 0xf0100000u).
This commit is contained in:
Tor Egge 1999-02-15 17:36:58 +00:00
parent 91e8cb2f1e
commit 3d8befc22d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=44069

View File

@ -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