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
Kirill Smelkov
linux
Commits
ef300e42
Commit
ef300e42
authored
May 06, 2007
by
Ralf Baechle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[MIPS] Define and use vi_handler_t for vectored interrupt handlers.
Signed-off-by:
Ralf Baechle
<
ralf@linux-mips.org
>
parent
856a514b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
arch/mips/kernel/traps.c
arch/mips/kernel/traps.c
+2
-2
include/asm-mips/system.h
include/asm-mips/system.h
+4
-1
No files found.
arch/mips/kernel/traps.c
View file @
ef300e42
...
...
@@ -1128,7 +1128,7 @@ void mips_srs_free(int set)
clear_bit
(
set
,
&
sr
->
sr_allocated
);
}
static
void
*
set_vi_srs_handler
(
int
n
,
v
oid
*
addr
,
int
srs
)
static
void
*
set_vi_srs_handler
(
int
n
,
v
i_handler_t
addr
,
int
srs
)
{
unsigned
long
handler
;
unsigned
long
old_handler
=
vi_handlers
[
n
];
...
...
@@ -1217,7 +1217,7 @@ static void *set_vi_srs_handler(int n, void *addr, int srs)
return
(
void
*
)
old_handler
;
}
void
*
set_vi_handler
(
int
n
,
v
oid
*
addr
)
void
*
set_vi_handler
(
int
n
,
v
i_handler_t
addr
)
{
return
set_vi_srs_handler
(
n
,
addr
,
0
);
}
...
...
include/asm-mips/system.h
View file @
ef300e42
...
...
@@ -464,7 +464,10 @@ static inline unsigned long __cmpxchg_local(volatile void * ptr,
extern
void
set_handler
(
unsigned
long
offset
,
void
*
addr
,
unsigned
long
len
);
extern
void
set_uncached_handler
(
unsigned
long
offset
,
void
*
addr
,
unsigned
long
len
);
extern
void
*
set_vi_handler
(
int
n
,
void
*
addr
);
typedef
void
(
*
vi_handler_t
)(
void
);
extern
void
*
set_vi_handler
(
int
n
,
vi_handler_t
addr
);
extern
void
*
set_except_vector
(
int
n
,
void
*
addr
);
extern
unsigned
long
ebase
;
extern
void
per_cpu_trap_init
(
void
);
...
...
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