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
05822c83
Commit
05822c83
authored
Sep 20, 2011
by
Sascha Hauer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ARM i.MX entry-macro.S: remove now unused code
Signed-off-by:
Sascha Hauer
<
s.hauer@pengutronix.de
>
parent
ffa2ea3f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
57 deletions
+1
-57
arch/arm/plat-mxc/include/mach/entry-macro.S
arch/arm/plat-mxc/include/mach/entry-macro.S
+1
-57
No files found.
arch/arm/plat-mxc/include/mach/entry-macro.S
View file @
05822c83
...
...
@@ -9,72 +9,16 @@
*
published
by
the
Free
Software
Foundation
.
*/
#include <mach/hardware.h>
/*
Unused
,
we
use
CONFIG_MULTI_IRQ_HANDLER
*/
#define AVIC_NIMASK 0x04
@
this
macro
disables
fast
irq
(
not
implemented
)
.
macro
disable_fiq
.
endm
.
macro
get_irqnr_preamble
,
base
,
tmp
#ifndef CONFIG_MXC_TZIC
ldr
\
base
,
=
avic_base
ldr
\
base
,
[
\
base
]
#ifdef CONFIG_MXC_IRQ_PRIOR
ldr
r4
,
[
\
base
,
#
AVIC_NIMASK
]
#endif
#elif defined CONFIG_MXC_TZIC
ldr
\
base
,
=
tzic_base
ldr
\
base
,
[
\
base
]
#endif /* CONFIG_MXC_TZIC */
.
endm
.
macro
arch_ret_to_user
,
tmp1
,
tmp2
.
endm
@
this
macro
checks
which
interrupt
occurred
@
and
returns
its
number
in
irqnr
@
and
returns
if
an
interrupt
occurred
in
irqstat
.
macro
get_irqnr_and_base
,
irqnr
,
irqstat
,
base
,
tmp
#ifndef CONFIG_MXC_TZIC
@
Load
offset
&
priority
of
the
highest
priority
@
interrupt
pending
from
AVIC_NIVECSR
ldr
\
irqstat
,
[
\
base
,
#
0x40
]
@
Shift
to
get
the
decoded
IRQ
number
,
using
ASR
so
@
'no interrupt pending'
becomes
0xffffffff
mov
\
irqnr
,
\
irqstat
,
asr
#
16
@
set
zero
flag
if
IRQ
+
1
==
0
adds
\
tmp
,
\
irqnr
,
#
1
#ifdef CONFIG_MXC_IRQ_PRIOR
bicne
\
tmp
,
\
irqstat
,
#
0xFFFFFFE0
strne
\
tmp
,
[
\
base
,
#
AVIC_NIMASK
]
streq
r4
,
[
\
base
,
#
AVIC_NIMASK
]
#endif
#elif defined CONFIG_MXC_TZIC
@
Load
offset
&
priority
of
the
highest
priority
@
interrupt
pending
.
@
0x080
is
INTSEC0
register
@
0xD80
is
HIPND0
register
mov
\
irqnr
,
#
0
1000
:
add
\
irqstat
,
\
base
,
\
irqnr
,
lsr
#
3
ldr
\
tmp
,
[
\
irqstat
,
#
0xd80
]
ldr
\
irqstat
,
[
\
irqstat
,
#
0x080
]
ands
\
tmp
,
\
tmp
,
\
irqstat
bne
1001
f
add
\
irqnr
,
\
irqnr
,
#
32
cmp
\
irqnr
,
#
128
blo
1000
b
b
2001
f
1001
:
mov
\
irqstat
,
#
1
1002
:
tst
\
tmp
,
\
irqstat
bne
2002
f
movs
\
tmp
,
\
tmp
,
lsr
#
1
addne
\
irqnr
,
\
irqnr
,
#
1
bne
1002
b
2001
:
mov
\
irqnr
,
#
0
2002
:
movs
\
irqnr
,
\
irqnr
#endif
.
endm
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