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
c3be06eb
Commit
c3be06eb
authored
Jun 23, 2011
by
Dave Martin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ARM: mm: proc-arm6_7: Use the new processor struct macros
Signed-off-by:
Dave Martin
<
dave.martin@linaro.org
>
parent
5c9369bc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
134 deletions
+32
-134
arch/arm/mm/proc-arm6_7.S
arch/arm/mm/proc-arm6_7.S
+32
-134
No files found.
arch/arm/mm/proc-arm6_7.S
View file @
c3be06eb
...
@@ -269,159 +269,57 @@ __arm7_setup: mov r0, #0
...
@@ -269,159 +269,57 @@ __arm7_setup: mov r0, #0
__INITDATA
__INITDATA
/*
@
define
struct
processor
(
see
<
asm
/
proc
-
fns
.
h
>
and
proc
-
macros
.
S
)
*
Purpose
:
Function
pointers
used
to
access
above
functions
-
all
calls
define_processor_functions
arm6
,
dabort
=
cpu_arm6_data_abort
,
pabort
=
legacy_pabort
*
come
through
these
define_processor_functions
arm7
,
dabort
=
cpu_arm7_data_abort
,
pabort
=
legacy_pabort
*/
.
type
arm6_processor_functions
,
#
object
ENTRY
(
arm6_processor_functions
)
.
word
cpu_arm6_data_abort
.
word
legacy_pabort
.
word
cpu_arm6_proc_init
.
word
cpu_arm6_proc_fin
.
word
cpu_arm6_reset
.
word
cpu_arm6_do_idle
.
word
cpu_arm6_dcache_clean_area
.
word
cpu_arm6_switch_mm
.
word
cpu_arm6_set_pte_ext
.
word
0
.
word
0
.
word
0
.
size
arm6_processor_functions
,
.
-
arm6_processor_functions
/*
*
Purpose
:
Function
pointers
used
to
access
above
functions
-
all
calls
*
come
through
these
*/
.
type
arm7_processor_functions
,
#
object
ENTRY
(
arm7_processor_functions
)
.
word
cpu_arm7_data_abort
.
word
legacy_pabort
.
word
cpu_arm7_proc_init
.
word
cpu_arm7_proc_fin
.
word
cpu_arm7_reset
.
word
cpu_arm7_do_idle
.
word
cpu_arm7_dcache_clean_area
.
word
cpu_arm7_switch_mm
.
word
cpu_arm7_set_pte_ext
.
word
0
.
word
0
.
word
0
.
size
arm7_processor_functions
,
.
-
arm7_processor_functions
.
section
".rodata"
.
section
".rodata"
.
type
cpu_arch_name
,
#
object
string
cpu_arch_name
,
"armv3"
cpu_arch_name
:
.
asciz
"armv3"
string
cpu_elf_name
,
"v3"
.
size
cpu_arch_name
,
.
-
cpu_arch_name
string
cpu_arm6_name
,
"ARM6"
string
cpu_arm610_name
,
"ARM610"
.
type
cpu_elf_name
,
#
object
string
cpu_arm7_name
,
"ARM7"
cpu_elf_name
:
.
asciz
"v3"
string
cpu_arm710_name
,
"ARM710"
.
size
cpu_elf_name
,
.
-
cpu_elf_name
.
type
cpu_arm6_name
,
#
object
cpu_arm6_name
:
.
asciz
"ARM6"
.
size
cpu_arm6_name
,
.
-
cpu_arm6_name
.
type
cpu_arm610_name
,
#
object
cpu_arm610_name
:
.
asciz
"ARM610"
.
size
cpu_arm610_name
,
.
-
cpu_arm610_name
.
type
cpu_arm7_name
,
#
object
cpu_arm7_name
:
.
asciz
"ARM7"
.
size
cpu_arm7_name
,
.
-
cpu_arm7_name
.
type
cpu_arm710_name
,
#
object
cpu_arm710_name
:
.
asciz
"ARM710"
.
size
cpu_arm710_name
,
.
-
cpu_arm710_name
.
align
.
align
.
section
".proc.info.init"
,
#
alloc
,
#
execinstr
.
section
".proc.info.init"
,
#
alloc
,
#
execinstr
.
type
__arm6_proc_info
,
#
object
.
macro
arm67_proc_info
name
:
req
,
cpu_val
:
req
,
cpu_mask
:
req
,
cpu_name
:
req
,
\
__arm6_proc_info
:
cpu_mm_mmu_flags
:
req
,
cpu_flush
:
req
,
cpu_proc_funcs
:
req
.
long
0x41560600
.
type
__
\
name
\
()
_proc_info
,
#
object
.
long
0xfffffff0
__
\
name
\()
_proc_info
:
.
long
0x00000c1e
.
long
\
cpu_val
.
long
\
cpu_mask
.
long
\
cpu_mm_mmu_flags
.
long
PMD_TYPE_SECT
|
\
.
long
PMD_TYPE_SECT
|
\
PMD_BIT4
|
\
PMD_BIT4
|
\
PMD_SECT_AP_WRITE
|
\
PMD_SECT_AP_WRITE
|
\
PMD_SECT_AP_READ
PMD_SECT_AP_READ
b
__arm6_setup
b
\
cpu_flush
.
long
cpu_arch_name
.
long
cpu_arch_name
.
long
cpu_elf_name
.
long
cpu_elf_name
.
long
HWCAP_SWP
|
HWCAP_26BIT
.
long
HWCAP_SWP
|
HWCAP_26BIT
.
long
cpu_arm6
_name
.
long
\
cpu
_name
.
long
arm6_processor_function
s
.
long
\
cpu_proc_func
s
.
long
v3_tlb_fns
.
long
v3_tlb_fns
.
long
v3_user_fns
.
long
v3_user_fns
.
long
v3_cache_fns
.
long
v3_cache_fns
.
size
__arm6_proc_info
,
.
-
__arm6_proc_info
.
size
__
\
name
\
()
_proc_info
,
.
-
__
\
name
\
()
_proc_info
.
endm
.
type
__arm610_proc_info
,
#
object
__arm610_proc_info
:
arm67_proc_info
arm6
,
0x41560600
,
0xfffffff0
,
cpu_arm6_name
,
\
.
long
0x41560610
0
x00000c1e
,
__arm6_setup
,
arm6_processor_functions
.
long
0xfffffff0
arm67_proc_info
arm610
,
0x41560610
,
0xfffffff0
,
cpu_arm610_name
,
\
.
long
0x00000c1e
0
x00000c1e
,
__arm6_setup
,
arm6_processor_functions
.
long
PMD_TYPE_SECT
|
\
arm67_proc_info
arm7
,
0x41007000
,
0xffffff00
,
cpu_arm7_name
,
\
PMD_BIT4
|
\
0
x00000c1e
,
__arm7_setup
,
arm7_processor_functions
PMD_SECT_AP_WRITE
|
\
arm67_proc_info
arm710
,
0x41007100
,
0xfff8ff00
,
cpu_arm710_name
,
\
PMD_SECT_AP_READ
PMD_TYPE_SECT
|
\
b
__arm6_setup
.
long
cpu_arch_name
.
long
cpu_elf_name
.
long
HWCAP_SWP
|
HWCAP_26BIT
.
long
cpu_arm610_name
.
long
arm6_processor_functions
.
long
v3_tlb_fns
.
long
v3_user_fns
.
long
v3_cache_fns
.
size
__arm610_proc_info
,
.
-
__arm610_proc_info
.
type
__arm7_proc_info
,
#
object
__arm7_proc_info
:
.
long
0x41007000
.
long
0xffffff00
.
long
0x00000c1e
.
long
PMD_TYPE_SECT
|
\
PMD_BIT4
|
\
PMD_SECT_AP_WRITE
|
\
PMD_SECT_AP_READ
b
__arm7_setup
.
long
cpu_arch_name
.
long
cpu_elf_name
.
long
HWCAP_SWP
|
HWCAP_26BIT
.
long
cpu_arm7_name
.
long
arm7_processor_functions
.
long
v3_tlb_fns
.
long
v3_user_fns
.
long
v3_cache_fns
.
size
__arm7_proc_info
,
.
-
__arm7_proc_info
.
type
__arm710_proc_info
,
#
object
__arm710_proc_info
:
.
long
0x41007100
.
long
0xfff8ff00
.
long
PMD_TYPE_SECT
|
\
PMD_SECT_BUFFERABLE
|
\
PMD_SECT_BUFFERABLE
|
\
PMD_SECT_CACHEABLE
|
\
PMD_SECT_CACHEABLE
|
\
PMD_BIT4
|
\
PMD_BIT4
|
\
PMD_SECT_AP_WRITE
|
\
PMD_SECT_AP_WRITE
|
\
PMD_SECT_AP_READ
PMD_SECT_AP_READ
,
\
.
long
PMD_TYPE_SECT
|
\
__arm7_setup
,
arm7_processor_functions
PMD_BIT4
|
\
PMD_SECT_AP_WRITE
|
\
PMD_SECT_AP_READ
b
__arm7_setup
.
long
cpu_arch_name
.
long
cpu_elf_name
.
long
HWCAP_SWP
|
HWCAP_26BIT
.
long
cpu_arm710_name
.
long
arm7_processor_functions
.
long
v3_tlb_fns
.
long
v3_user_fns
.
long
v3_cache_fns
.
size
__arm710_proc_info
,
.
-
__arm710_proc_info
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