19 Jul 2012 16:05
Question about ARM module address range
Dave Anderson <anderson <at> redhat.com>
2012-07-19 14:05:28 GMT
2012-07-19 14:05:28 GMT
Hi guys,
While looking at the ARM per-cpu address range issue, I ran into
something re: the ARM module address range values that has me
confused.
In arm_init(), POST_VM, you've got:
machdep->machspec->modules_end = machdep->kvbase - 1;
But it never gets used, because here in arm_is_module_addr() the
local variable "module_end" is used instead -- although it is set
to the same value:
static int
arm_is_module_addr(ulong vaddr)
{
ulong modules_start;
ulong modules_end = machdep->kvbase - 1;
if (!MODULES_VADDR) {
/*
* In case we are still initializing, and vm_init() has not been
* called, we use defaults here which is 16MB below kernel start
* address.
*/
modules_start = machdep->kvbase - 16 * 1024 * 1024;
} else {
modules_start = MODULES_VADDR;
(Continue reading)
RSS Feed