Commit 7de43ef6 authored by Richard Henderson's avatar Richard Henderson

Remove dead module code so that builds with CONFIG_MODULES=n

will succeed.
parent 41bedfa9
......@@ -887,15 +887,6 @@ sys_pipe:
ret
.end sys_pipe
.align 4
.globl alpha_create_module
.ent alpha_create_module
alpha_create_module:
.prologue 0
mov $sp, $18
jmp $31, do_alpha_create_module
.end alpha_create_module
.align 4
.globl sys_ptrace
.ent sys_ptrace
......
......@@ -45,7 +45,6 @@
extern int do_pipe(int *);
extern asmlinkage unsigned long sys_brk(unsigned long);
extern asmlinkage unsigned long sys_create_module(char *, unsigned long);
/*
* Brk needs to return an error. Still support Linux's brk(0) query idiom,
......@@ -641,33 +640,6 @@ osf_sigstack(struct sigstack *uss, struct sigstack *uoss)
return error;
}
/*
* The Linux kernel isn't good at returning values that look
* like negative longs (they are mistaken as error values).
* Until that is fixed, we need this little workaround for
* create_module() because it's one of the few system calls
* that return kernel addresses (which are negative).
*/
asmlinkage unsigned long
do_alpha_create_module(char *module_name, unsigned long size,
struct pt_regs *regs)
{
long retval;
lock_kernel();
retval = sys_create_module(module_name, size);
/* We get either a module address or an error number, and we know
the error number is a small negative number, while the address
is always negative but much larger. */
if (retval + 1000 < 0)
regs->r0 = 0;
unlock_kernel();
return retval;
}
asmlinkage long
osf_sysinfo(int command, char *buf, long count)
{
......
......@@ -324,10 +324,10 @@ sys_call_table:
.quad sys_old_adjtimex
.quad sys_swapoff
.quad sys_getdents /* 305 */
.quad alpha_create_module
.quad sys_ni_syscall /* 306: old create_module */
.quad sys_init_module
.quad sys_delete_module
.quad sys_get_kernel_syms
.quad sys_ni_syscall /* 309: old get_kernel_syms */
.quad sys_syslog /* 310 */
.quad sys_reboot
.quad sys_clone
......@@ -365,7 +365,7 @@ sys_call_table:
.quad sys_getresuid
.quad sys_pciconfig_read /* 345 */
.quad sys_pciconfig_write
.quad sys_query_module
.quad sys_ni_syscall /* 347: old query_module */
.quad sys_prctl
.quad sys_pread64
.quad sys_pwrite64 /* 350 */
......
#ifndef _ASM_ALPHA_MODULE_H
#define _ASM_ALPHA_MODULE_H
/*
* This file contains the alpha architecture specific module code.
*/
#define module_map(x) vmalloc(x)
#define module_unmap(x) vfree(x)
#define module_arch_init(x) alpha_module_init(x)
#define arch_init_modules(x) alpha_init_modules(x)
static inline int
alpha_module_init(struct module *mod)
{
if (!mod_bound(mod->gp - 0x8000, 0, mod)) {
printk(KERN_ERR "module_arch_init: mod->gp out of bounds.\n");
return 1;
}
return 0;
}
static inline void
alpha_init_modules(struct module *mod)
{
__asm__("stq $29,%0" : "=m" (mod->gp));
}
/* Module rewrite still in progress. */
#endif /* _ASM_ALPHA_MODULE_H */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment