Whamcloud - gitweb
smash the HEAD with the contents of b_cmd. HEAD_PRE_CMD_SMASH and
[fs/lustre-release.git] / lustre / kernel_patches / patches / kernel_text_address-2.6.3.patch
1 Index: linux-2.6.3/arch/i386/kernel/traps.c
2 ===================================================================
3 --- linux-2.6.3.orig/arch/i386/kernel/traps.c   2004-02-23 14:04:13.000000000 -0800
4 +++ linux-2.6.3/arch/i386/kernel/traps.c        2004-02-23 14:10:07.000000000 -0800
5 @@ -890,3 +890,21 @@
6  
7         trap_init_hook();
8  }
9 +
10 +int is_kernel_text_address(unsigned long addr)
11 +{
12 +       if (addr < (unsigned long) &_stext ||
13 +           addr > (unsigned long) &_etext ||
14 +           module_text_address(addr))
15 +               return 0;
16 +
17 +       return 1;
18 +}
19 +
20 +int lookup_symbol(unsigned long address, char *buf, int buflen)
21 +{
22 +       return -ENOSYS;
23 +}
24 +
25 +EXPORT_SYMBOL_GPL(is_kernel_text_address);
26 +EXPORT_SYMBOL_GPL(lookup_symbol);