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
640bba88
Commit
640bba88
authored
Aug 31, 2003
by
Yoshinori Sato
Committed by
Linus Torvalds
Aug 31, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] h8300 interrupt problem fix
typo fixed.
parent
7f70ae01
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
6 deletions
+12
-6
arch/h8300/platform/h8300h/ints.c
arch/h8300/platform/h8300h/ints.c
+6
-3
arch/h8300/platform/h8s/ints.c
arch/h8300/platform/h8s/ints.c
+6
-3
No files found.
arch/h8300/platform/h8300h/ints.c
View file @
640bba88
...
...
@@ -57,17 +57,20 @@ static int use_kmalloc;
extern
unsigned
long
*
interrupt_redirect_table
;
#define CPU_VECTOR ((unsigned long *)0x000000)
#define ADDR_MASK (0xffffff)
static
inline
unsigned
long
*
get_vector_address
(
void
)
{
unsigned
long
*
rom_vector
=
(
unsigned
long
*
)
0x000000
;
unsigned
long
*
rom_vector
=
CPU_VECTOR
;
unsigned
long
base
,
tmp
;
int
vec_no
;
base
=
rom_vector
[
EXT_IRQ0
];
base
=
rom_vector
[
EXT_IRQ0
]
&
ADDR_MASK
;
/* check romvector format */
for
(
vec_no
=
EXT_IRQ1
;
vec_no
<=
EXT_IRQ5
;
vec_no
++
)
{
if
((
base
+
(
vec_no
-
EXT_IRQ0
)
*
4
)
!=
rom_vector
[
vec_no
]
)
if
((
base
+
(
vec_no
-
EXT_IRQ0
)
*
4
)
!=
(
rom_vector
[
vec_no
]
&
ADDR_MASK
)
)
return
NULL
;
}
...
...
arch/h8300/platform/h8s/ints.c
View file @
640bba88
...
...
@@ -95,17 +95,20 @@ static int use_kmalloc;
extern
unsigned
long
*
interrupt_redirect_table
;
#define CPU_VECTOR ((unsigned long *)0x000000)
#define ADDR_MASK (0xffffff)
static
inline
unsigned
long
*
get_vector_address
(
void
)
{
volatile
unsigned
long
*
rom_vector
=
(
unsigned
long
*
)
0x000000
;
volatile
unsigned
long
*
rom_vector
=
CPU_VECTOR
;
unsigned
long
base
,
tmp
;
int
vec_no
;
base
=
rom_vector
[
EXT_IRQ0
];
base
=
rom_vector
[
EXT_IRQ0
]
&
ADDR_MASK
;
/* check romvector format */
for
(
vec_no
=
EXT_IRQ1
;
vec_no
<=
EXT_IRQ15
;
vec_no
++
)
{
if
((
base
+
(
vec_no
-
EXT_IRQ0
)
*
4
)
!=
rom_vector
[
vec_no
]
)
if
((
base
+
(
vec_no
-
EXT_IRQ0
)
*
4
)
!=
(
rom_vector
[
vec_no
]
&
ADDR_MASK
)
)
return
NULL
;
}
...
...
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