Re: [RFC patch] extable and module add object is static

From: Lai Jiangshan
Date: Sun Mar 28 2010 - 21:40:21 EST


Mathieu Desnoyers wrote:
> +static int core_object_is_static(void *obj)
> +{
[...]
> + if (addr >= (unsigned long)__per_cpu_start &&
> + addr <= (unsigned long)__per_cpu_end)
> + return 1;

This may only correct for UP.
You may need arch-special codes for SMP.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/