Date: Thu, 2 Nov 2006 17:28:38 +0000 (UTC) From: Ruslan Ermilov <ru@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/boot/common load_elf.c src/sys/boot/i386/boot2 boot2.c src/sys/boot/i386/libi386 elf32_freebsd.c src/sys/boot/pc98/boot2 boot.c Message-ID: <200611021728.kA2HScwU015352@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
ru 2006-11-02 17:28:38 UTC FreeBSD src repository Modified files: sys/boot/common load_elf.c sys/boot/i386/boot2 boot2.c sys/boot/i386/libi386 elf32_freebsd.c sys/boot/pc98/boot2 boot.c Log: Revert the last change. Masking only 2 MSBs of the virtual address to get the physical address doesn't work for all values of KVA_PAGES, while masking 8 MSBs works for all values of KVA_PAGES that are multiple of 4 for non-PAE and 8 for PAE. (This leaves us limited with 12MB for non-PAE kernels and 14MB for PAE kernels.) To get things right, we'd need to subtract the KERNBASE from the virtual address (but KERNBASE is not easy to figure out from here), or have physical addresses set properly in the ELF headers. Discussed with: jhb Revision Changes Path 1.36 +1 -1 src/sys/boot/common/load_elf.c 1.83 +3 -3 src/sys/boot/i386/boot2/boot2.c 1.17 +1 -1 src/sys/boot/i386/libi386/elf32_freebsd.c 1.16 +2 -2 src/sys/boot/pc98/boot2/boot.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200611021728.kA2HScwU015352>