Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci-2.6.23
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci-2.6.23
Commits
1b9749e7
Commit
1b9749e7
authored
Aug 10, 2005
by
Russell King
Committed by
Russell King
Aug 10, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ARM] Use #defined constants for manipulating v6 hardware PTE bits
Signed-off-by:
Russell King
<
rmk+kernel@arm.linux.org.uk
>
parent
86b37860
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
16 deletions
+16
-16
arch/arm/mm/proc-v6.S
arch/arm/mm/proc-v6.S
+7
-13
include/asm-arm/pgtable.h
include/asm-arm/pgtable.h
+9
-3
No files found.
arch/arm/mm/proc-v6.S
View file @
1b9749e7
...
...
@@ -111,12 +111,6 @@ ENTRY(cpu_v6_switch_mm)
mcr
p15
,
0
,
r1
,
c13
,
c0
,
1
@
set
context
ID
mov
pc
,
lr
#define nG (1 << 11)
#define APX (1 << 9)
#define AP1 (1 << 5)
#define AP0 (1 << 4)
#define XN (1 << 0)
/*
*
cpu_v6_set_pte
(
ptep
,
pte
)
*
...
...
@@ -141,22 +135,22 @@ ENTRY(cpu_v6_set_pte)
bic
r2
,
r1
,
#
0x00000ff0
bic
r2
,
r2
,
#
0x00000003
orr
r2
,
r2
,
#
AP0
|
2
orr
r2
,
r2
,
#
PTE_EXT_
AP0
|
2
tst
r1
,
#
L_PTE_WRITE
tstne
r1
,
#
L_PTE_DIRTY
orreq
r2
,
r2
,
#
APX
orreq
r2
,
r2
,
#
PTE_EXT_
APX
tst
r1
,
#
L_PTE_USER
orrne
r2
,
r2
,
#
AP1
|
n
G
tstne
r2
,
#
APX
bicne
r2
,
r2
,
#
APX
|
AP0
orrne
r2
,
r2
,
#
PTE_EXT_AP1
|
PTE_EXT_N
G
tstne
r2
,
#
PTE_EXT_
APX
bicne
r2
,
r2
,
#
PTE_EXT_APX
|
PTE_EXT_
AP0
tst
r1
,
#
L_PTE_YOUNG
biceq
r2
,
r2
,
#
APX
| AP1 |
AP0
biceq
r2
,
r2
,
#
PTE_EXT_APX
|
PTE_EXT_AP_MASK
@
tst
r1
,
#
L_PTE_EXEC
@
orreq
r2
,
r2
,
#
XN
@
orreq
r2
,
r2
,
#
PTE_EXT_
XN
tst
r1
,
#
L_PTE_PRESENT
moveq
r2
,
#
0
...
...
include/asm-arm/pgtable.h
View file @
1b9749e7
...
...
@@ -188,12 +188,18 @@ extern void __pgd_error(const char *file, int line, unsigned long val);
/*
* - extended small page/tiny page
*/
#define PTE_EXT_XN (1 << 0)
/* v6 */
#define PTE_EXT_AP_MASK (3 << 4)
#define PTE_EXT_AP0 (1 << 4)
#define PTE_EXT_AP1 (2 << 4)
#define PTE_EXT_AP_UNO_SRO (0 << 4)
#define PTE_EXT_AP_UNO_SRW (
1 << 4
)
#define PTE_EXT_AP_URO_SRW (
2 << 4
)
#define PTE_EXT_AP_URW_SRW (
3 << 4
)
#define PTE_EXT_AP_UNO_SRW (
PTE_EXT_AP0
)
#define PTE_EXT_AP_URO_SRW (
PTE_EXT_AP1
)
#define PTE_EXT_AP_URW_SRW (
PTE_EXT_AP1|PTE_EXT_AP0
)
#define PTE_EXT_TEX(x) ((x) << 6)
/* v5 */
#define PTE_EXT_APX (1 << 9)
/* v6 */
#define PTE_EXT_SHARED (1 << 10)
/* v6 */
#define PTE_EXT_NG (1 << 11)
/* v6 */
/*
* - small page
...
...
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