Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Phil Pemberton
Kernel
Commits
18dc64d9
Commit
18dc64d9
authored
24 years ago
by
Mike Stephens
Browse files
Options
Download
Email Patches
Plain Diff
fix for sparse map out
Detail: Admin: not tested
parent
1e16da0c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
s/AMBControl/memmap
s/AMBControl/memmap
+2
-6
No files found.
s/AMBControl/memmap
View file @
18dc64d9
...
...
@@ -458,7 +458,6 @@ AMB_SetMemMapEntries_SparseMapOut ROUT
MOV
r10
,
r4
;ptr to page list
MOV
r7
,#
0
LDR
r7
,[
r7
,#
CamEntriesPointer
]
;r7 -> CAM
LDR
lr
,=
L2PT
;lr -> L2PT
MOV
r9
,#
AP_Duff
;permissions for DuffEntry
LDR
r1
,=
DuffEntry
;means Nowhere, in CAM
MOV
r4
,#
ApplicationStart
;log. address of first page
...
...
@@ -472,9 +471,7 @@ AMB_SetMemMapEntries_SparseMapOut ROUT
MOVLO
r6
,#
0
;r6 := 0 if we are to do coherency as we go
BLO
%FT10
;let's do it
Push
"lr"
;global coherency
ARMop
MMU_Changing
,,,
r2
Pull
"lr"
ARMop
MMU_Changing
,,,
r2
;global coherency
B
%FT10
;skip next 32 pages then continue
...
...
@@ -493,14 +490,13 @@ AMB_SetMemMapEntries_SparseMapOut ROUT
BEQ
%FT16
TEQ
r6
,
#
0
BNE
%FT14
;check for coherency as we go
Push
"lr"
MOV
r0
,
r4
;address of page
ARMop
MMU_ChangingEntry
,,,
r2
Pull
"lr"
14
LDR
r0
,[
r10
]
;page no.
ADD
r0
,
r7
,
r0
,
LSL
#
3
;r0 -> CAM entry for page
STMIA
r0
,{
r1
,
r9
}
;CAM entry for page set to DuffEntry,AP_Duff
LDR
lr
,=
L2PT
;lr -> L2PT
STR
r2
,[
lr
,
r4
,
LSR
#(
Log2PageSize
-
2
)]
;L2PT entry for page set to 0 (means translation fault)
SUBS
r3
,
r3
,#
1
STREQ
r2
,[
r5
,#-
4
]
;make sure we clear last word of bitmap, and...
...
...
This diff is collapsed.
Click to expand it.
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