| Chris Zankel | 5a0015d | 2005-06-23 22:01:16 -0700 | [diff] [blame] | 1 | /* | 
 | 2 |  * arch/xtensa/kernel/platform.c | 
 | 3 |  * | 
 | 4 |  * Module support. | 
 | 5 |  * | 
 | 6 |  * This file is subject to the terms and conditions of the GNU General Public | 
 | 7 |  * License.  See the file "COPYING" in the main directory of this archive | 
 | 8 |  * for more details. | 
 | 9 |  * | 
 | 10 |  * Copyright (C) 2001 - 2005 Tensilica Inc. | 
 | 11 |  * | 
 | 12 |  * Chris Zankel <chris@zankel.net> | 
 | 13 |  * | 
 | 14 |  */ | 
 | 15 |  | 
 | 16 | #include <linux/module.h> | 
 | 17 | #include <linux/moduleloader.h> | 
 | 18 | #include <linux/elf.h> | 
 | 19 | #include <linux/vmalloc.h> | 
 | 20 | #include <linux/fs.h> | 
 | 21 | #include <linux/string.h> | 
 | 22 | #include <linux/kernel.h> | 
 | 23 | #include <linux/cache.h> | 
 | 24 |  | 
 | 25 | LIST_HEAD(module_buf_list); | 
 | 26 |  | 
 | 27 | void *module_alloc(unsigned long size) | 
 | 28 | { | 
 | 29 |   panic("module_alloc not implemented"); | 
 | 30 | } | 
 | 31 |  | 
 | 32 | void module_free(struct module *mod, void *module_region) | 
 | 33 | { | 
 | 34 |   panic("module_free not implemented"); | 
 | 35 | } | 
 | 36 |  | 
 | 37 | int module_frob_arch_sections(Elf32_Ehdr *hdr, | 
 | 38 |     			      Elf32_Shdr *sechdrs, | 
 | 39 | 			      char *secstrings, | 
 | 40 | 			      struct module *me) | 
 | 41 | { | 
 | 42 |   panic("module_frob_arch_sections not implemented"); | 
 | 43 | } | 
 | 44 |  | 
 | 45 | int apply_relocate(Elf32_Shdr *sechdrs, | 
 | 46 |     		   const char *strtab, | 
 | 47 | 		   unsigned int symindex, | 
 | 48 | 		   unsigned int relsec, | 
 | 49 | 		   struct module *module) | 
 | 50 | { | 
 | 51 |   panic ("apply_relocate not implemented"); | 
 | 52 | } | 
 | 53 |  | 
 | 54 | int apply_relocate_add(Elf32_Shdr *sechdrs, | 
 | 55 | 		       const char *strtab, | 
 | 56 | 		       unsigned int symindex, | 
 | 57 | 		       unsigned int relsec, | 
 | 58 | 		       struct module *module) | 
 | 59 | { | 
 | 60 |   panic("apply_relocate_add not implemented"); | 
 | 61 | } | 
 | 62 |  | 
 | 63 | int module_finalize(const Elf_Ehdr *hdr, | 
 | 64 |     		    const Elf_Shdr *sechdrs, | 
 | 65 | 		    struct module *me) | 
 | 66 | { | 
 | 67 |   panic ("module_finalize not implemented"); | 
 | 68 | } | 
 | 69 |  | 
 | 70 | void module_arch_cleanup(struct module *mod) | 
 | 71 | { | 
 | 72 |   panic("module_arch_cleanup not implemented"); | 
 | 73 | } | 
 | 74 |  | 
 | 75 | struct bug_entry *module_find_bug(unsigned long bugaddr) | 
 | 76 | { | 
 | 77 |   panic("module_find_bug not implemented"); | 
 | 78 | } |