1 Index: linux-2.4.22-vanilla/arch/i386/kernel/traps.c
2 ===================================================================
3 --- linux-2.4.22-vanilla.orig/arch/i386/kernel/traps.c 2003-05-16 05:28:59.000000000 +0400
4 +++ linux-2.4.22-vanilla/arch/i386/kernel/traps.c 2003-11-14 00:35:36.000000000 +0300
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_GPL(is_kernel_text_address);
40 +EXPORT_SYMBOL_GPL(lookup_symbol);
41 Index: linux-2.4.22-vanilla/arch/i386/kernel/Makefile
42 ===================================================================
43 --- linux-2.4.22-vanilla.orig/arch/i386/kernel/Makefile 2003-11-03 23:22:06.000000000 +0300
44 +++ linux-2.4.22-vanilla/arch/i386/kernel/Makefile 2003-11-14 00:30:28.000000000 +0300
49 -export-objs := mca.o mtrr.o msr.o cpuid.o microcode.o i386_ksyms.o time.o setup.o
50 +export-objs := mca.o mtrr.o msr.o cpuid.o microcode.o i386_ksyms.o time.o \
53 obj-y := process.o semaphore.o signal.o entry.o traps.o irq.o vm86.o \
54 ptrace.o i8259.o ioport.o ldt.o setup.o time.o sys_i386.o \