1 Index: linux-2.4.18-chaos/arch/i386/kernel/traps.c
2 ===================================================================
3 --- linux-2.4.18-chaos.orig/arch/i386/kernel/traps.c 2003-07-28 17:51:13.000000000 +0400
4 +++ linux-2.4.18-chaos/arch/i386/kernel/traps.c 2003-12-11 02:10:33.000000000 +0300
6 EXPORT_SYMBOL_GPL(nmi_watchdog);
10 +extern struct module *module_list;
11 +extern struct module kernel_module;
14 +int is_kernel_text_address(unsigned long addr)
17 +#ifdef CONFIG_MODULES
20 + if (addr >= (unsigned long) &_stext &&
21 + addr <= (unsigned long) &_etext);
24 +#ifdef CONFIG_MODULES
25 + for (mod = module_list; mod != &kernel_module; mod = mod->next) {
26 + /* mod_bound tests for addr being inside the vmalloc'ed
27 + * module area. Of course it'd be better to test only
28 + * for the .text subset... */
29 + if (mod_bound(addr, 0, mod)) {
39 +EXPORT_SYMBOL(lookup_symbol);
40 +EXPORT_SYMBOL_GPL(is_kernel_text_address);