summaryrefslogtreecommitdiff
path: root/sys/boot/common
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@FreeBSD.org>2006-11-02 17:28:38 +0000
committerRuslan Ermilov <ru@FreeBSD.org>2006-11-02 17:28:38 +0000
commit593bbd21955c092921e03dbe52d261939267da4c (patch)
tree34de91a0a0dd3ee661c12286a13ec25ee3a189de /sys/boot/common
parentd99b0dd2c529785b308dffb9598efdc8a80e580e (diff)
Notes
Diffstat (limited to 'sys/boot/common')
-rw-r--r--sys/boot/common/load_elf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/boot/common/load_elf.c b/sys/boot/common/load_elf.c
index be8f8815b242..cd983a982dbf 100644
--- a/sys/boot/common/load_elf.c
+++ b/sys/boot/common/load_elf.c
@@ -263,7 +263,7 @@ __elfN(loadimage)(struct preloaded_file *fp, elf_file_t ef, u_int64_t off)
#if __ELF_WORD_SIZE == 64
off = - (off & 0xffffffffff000000ull);/* x86_64 relocates after locore */
#else
- off = - (off & 0xc0000000u); /* i386 relocates after locore */
+ off = - (off & 0xff000000u); /* i386 relocates after locore */
#endif
#else
off = 0; /* other archs use direct mapped kernels */