Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
7de43ef6
Commit
7de43ef6
authored
Nov 17, 2002
by
Richard Henderson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove dead module code so that builds with CONFIG_MODULES=n
will succeed.
parent
41bedfa9
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
63 deletions
+4
-63
arch/alpha/kernel/entry.S
arch/alpha/kernel/entry.S
+0
-9
arch/alpha/kernel/osf_sys.c
arch/alpha/kernel/osf_sys.c
+0
-28
arch/alpha/kernel/systbls.S
arch/alpha/kernel/systbls.S
+3
-3
include/asm-alpha/module.h
include/asm-alpha/module.h
+1
-23
No files found.
arch/alpha/kernel/entry.S
View file @
7de43ef6
...
...
@@ -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
...
...
arch/alpha/kernel/osf_sys.c
View file @
7de43ef6
...
...
@@ -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
)
{
...
...
arch/alpha/kernel/systbls.S
View file @
7de43ef6
...
...
@@ -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
*/
...
...
include/asm-alpha/module.h
View file @
7de43ef6
#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 */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment