lkml.org 
[lkml]   [2012]   [Nov]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC Patch v1 37/55] ARC: dynamic loadable module support
On Monday 12 November 2012 07:23 PM, Arnd Bergmann wrote:
> On Monday 12 November 2012, Vineet.Gupta1@synopsys.com wrote:
>> +void *module_alloc(unsigned long size)
>> +{
>> + if (size == 0)
>> + return NULL;
>> +
>> + return vmalloc(size);
>> +
>> +}
>> +
>> +void module_free(struct module *module, void *region)
>> +{
>> + vfree(region);
>> +}
>> +
>> +int module_frob_arch_sections(Elf_Ehdr *hdr, Elf_Shdr *sechdrs,
>> + char *secstr, struct module *mod)
>> +{
>> + return 0;
>> +}
>> +
>> +void module_arch_cleanup(struct module *mod)
>> +{
>> +}
>> +
>> +int module_finalize(const Elf32_Ehdr *hdr, const Elf_Shdr *sechdrs,
>> + struct module *mod)
>> +{
>> + return 0;
>> +}
> All of these are identical to the default implementation in kernel/module.c
> and you can simply drop your own definitions.

Alloc/free dropped. Rest 3 needed for ARC specific unwinding out of
loadable modules.

>
> Arnd



\
 
 \ /
  Last update: 2012-11-15 13:01    [W:0.150 / U:35.016 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site