~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to kernel/extable.c

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
72
72
        return 0;
73
73
}
74
74
 
 
75
/**
 
76
 * core_kernel_data - tell if addr points to kernel data
 
77
 * @addr: address to test
 
78
 *
 
79
 * Returns true if @addr passed in is from the core kernel data
 
80
 * section.
 
81
 *
 
82
 * Note: On some archs it may return true for core RODATA, and false
 
83
 *  for others. But will always be true for core RW data.
 
84
 */
 
85
int core_kernel_data(unsigned long addr)
 
86
{
 
87
        if (addr >= (unsigned long)_sdata &&
 
88
            addr < (unsigned long)_edata)
 
89
                return 1;
 
90
        return 0;
 
91
}
 
92
 
75
93
int __kernel_text_address(unsigned long addr)
76
94
{
77
95
        if (core_kernel_text(addr))