Date: Wed, 9 Feb 2011 19:08:21 +0000 (UTC) From: Marcel Moolenaar <marcel@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/kern subr_module.c src/sys/sys linker.h Message-ID: <201102091908.p19J8kRE062844@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
marcel 2011-02-09 19:08:21 UTC FreeBSD src repository Modified files: sys/kern subr_module.c sys/sys linker.h Log: SVN rev 218494 on 2011-02-09 19:08:21Z by marcel Provide convenience function for obtaining MODINFO_ADDR and MODINFO_SIZE attributes for preloaded modules/images. In particular, MODINFO_ADDR has the added complexity of not always being relocated properly. Rather than kluging this in the various components that are affected, we handle it in a centralized place (preload_fetch_addr()). To that end, expose a new variable, preload_addr_relocate, that MD initialization code can set and that turns the address attribute into a valid kernel VA. Architectures that need the relocation: arm & powerpc (at least). Components that can utilize this: acpi(4), md(4), fb(4), pci(4), ZFS, geli. Sponsored by: Juniper Networks Revision Changes Path 1.10 +24 -1 src/sys/kern/subr_module.c 1.53 +4 -0 src/sys/sys/linker.h
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201102091908.p19J8kRE062844>