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
345c52e0
Commit
345c52e0
authored
Aug 02, 2010
by
Jesper Nilsson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CRIS: Additional mmu settings for ARTPEC-3
Signed-off-by:
Jesper Nilsson
<
jesper.nilsson@axis.com
>
parent
cd4f2011
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
2 deletions
+40
-2
arch/cris/arch-v32/kernel/head.S
arch/cris/arch-v32/kernel/head.S
+40
-2
No files found.
arch/cris/arch-v32/kernel/head.S
View file @
345c52e0
...
...
@@ -69,7 +69,13 @@ secondary_cpu_entry: /* Entry point for secondary CPUs */
;;
;; Note; 3 cycles is needed for a bank-select to take effect. Further;
;; bank 1 is the instruction MMU, bank 2 is the data MMU.
#ifndef CONFIG_ETRAX_VCS_SIM
#ifdef CONFIG_CRIS_MACH_ARTPEC3
move.d
REG_FIELD
(
mmu
,
rw_mm_kbase_hi
,
base_e
,
8
)
\
|
REG_FIELD
(
mmu
,
rw_mm_kbase_hi
,
base_c
,
4
)
\
|
REG_FIELD
(
mmu
,
rw_mm_kbase_hi
,
base_d
,
5
)
\
|
REG_FIELD
(
mmu
,
rw_mm_kbase_hi
,
base_b
,
0xb
),
$r0
#elif !defined(CONFIG_ETRAX_VCS_SIM)
move.d
REG_FIELD
(
mmu
,
rw_mm_kbase_hi
,
base_e
,
8
)
\
|
REG_FIELD
(
mmu
,
rw_mm_kbase_hi
,
base_c
,
4
)
\
|
REG_FIELD
(
mmu
,
rw_mm_kbase_hi
,
base_b
,
0xb
),
$r0
...
...
@@ -88,7 +94,39 @@ secondary_cpu_entry: /* Entry point for secondary CPUs */
;; Enable certain page protections and setup linear mapping
;; for f,e,c,b,4,0.
#ifndef CONFIG_ETRAX_VCS_SIM
;; ARTPEC-3:
;; c,d used for linear kernel mapping, up to 512 MB
;; e used for vmalloc
;; f unused, but page mapped to get page faults
;; ETRAX FS:
;; c used for linear kernel mapping, up to 256 MB
;; d used for vmalloc
;; e,f used for memory-mapped NOR flash
#ifdef CONFIG_CRIS_MACH_ARTPEC3
move.d
REG_STATE
(
mmu
,
rw_mm_cfg
,
we
,
on
)
\
|
REG_STATE
(
mmu
,
rw_mm_cfg
,
acc
,
on
)
\
|
REG_STATE
(
mmu
,
rw_mm_cfg
,
ex
,
on
)
\
|
REG_STATE
(
mmu
,
rw_mm_cfg
,
inv
,
on
)
\
|
REG_STATE
(
mmu
,
rw_mm_cfg
,
seg_f
,
page
)
\
|
REG_STATE
(
mmu
,
rw_mm_cfg
,
seg_e
,
page
)
\
|
REG_STATE
(
mmu
,
rw_mm_cfg
,
seg_d
,
linear
)
\
|
REG_STATE
(
mmu
,
rw_mm_cfg
,
seg_c
,
linear
)
\
|
REG_STATE
(
mmu
,
rw_mm_cfg
,
seg_b
,
linear
)
\
|
REG_STATE
(
mmu
,
rw_mm_cfg
,
seg_a
,
page
)
\
|
REG_STATE
(
mmu
,
rw_mm_cfg
,
seg_9
,
page
)
\
|
REG_STATE
(
mmu
,
rw_mm_cfg
,
seg_8
,
page
)
\
|
REG_STATE
(
mmu
,
rw_mm_cfg
,
seg_7
,
page
)
\
|
REG_STATE
(
mmu
,
rw_mm_cfg
,
seg_6
,
page
)
\
|
REG_STATE
(
mmu
,
rw_mm_cfg
,
seg_5
,
page
)
\
|
REG_STATE
(
mmu
,
rw_mm_cfg
,
seg_4
,
linear
)
\
|
REG_STATE
(
mmu
,
rw_mm_cfg
,
seg_3
,
page
)
\
|
REG_STATE
(
mmu
,
rw_mm_cfg
,
seg_2
,
page
)
\
|
REG_STATE
(
mmu
,
rw_mm_cfg
,
seg_1
,
page
)
\
|
REG_STATE
(
mmu
,
rw_mm_cfg
,
seg_0
,
linear
),
$r2
#elif !defined(CONFIG_ETRAX_VCS_SIM)
move.d
REG_STATE
(
mmu
,
rw_mm_cfg
,
we
,
on
)
\
|
REG_STATE
(
mmu
,
rw_mm_cfg
,
acc
,
on
)
\
|
REG_STATE
(
mmu
,
rw_mm_cfg
,
ex
,
on
)
\
...
...
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