-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PATCH] uml: kludgy compilation fixes for x86-64 subarch modules support
These are some trivial fixes for the x86-64 subarch module support. The only potential problem is that I have to modify arch/x86_64/kernel/module.c, to avoid copying the whole of it. I can't use it verbatim because it depends on a special vmalloc-like area for modules, which for now (maybe that's to fix, I guess not) UML/x86-64 has not. I went the easy way and reused the i386 vmalloc()-based allocator. Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it> Acked-by: Andi Kleen <ak@suse.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
- Loading branch information
Paolo 'Blaisorblade' Giarrusso
authored and
Linus Torvalds
committed
May 5, 2005
1 parent
f7fe878
commit 23352fc
Showing
5 changed files
with
79 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#include "linux/module.h" | ||
#include "linux/in6.h" | ||
#include "linux/rwsem.h" | ||
#include "asm/byteorder.h" | ||
#include "asm/semaphore.h" | ||
#include "asm/uaccess.h" | ||
#include "asm/checksum.h" | ||
#include "asm/errno.h" | ||
|
||
EXPORT_SYMBOL(__down_failed); | ||
EXPORT_SYMBOL(__down_failed_interruptible); | ||
EXPORT_SYMBOL(__down_failed_trylock); | ||
EXPORT_SYMBOL(__up_wakeup); | ||
|
||
/*XXX: we need them because they would be exported by x86_64 */ | ||
EXPORT_SYMBOL(__memcpy); | ||
EXPORT_SYMBOL(strcmp); | ||
EXPORT_SYMBOL(strcat); | ||
EXPORT_SYMBOL(strcpy); | ||
|
||
/* Networking helper routines. */ | ||
/*EXPORT_SYMBOL(csum_partial_copy_from); | ||
EXPORT_SYMBOL(csum_partial_copy_to);*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#include <linux/vmalloc.h> | ||
#include <linux/moduleloader.h> | ||
|
||
/*Copied from i386 arch/i386/kernel/module.c */ | ||
void *module_alloc(unsigned long size) | ||
{ | ||
if (size == 0) | ||
return NULL; | ||
return vmalloc_exec(size); | ||
} | ||
|
||
/* Free memory returned from module_alloc */ | ||
void module_free(struct module *mod, void *module_region) | ||
{ | ||
vfree(module_region); | ||
/* FIXME: If module_region == mod->init_region, trim exception | ||
table entries. */ | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters