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
Jeffrey Lee
Kernel
Commits
5dbb8207
Commit
5dbb8207
authored
5 years ago
by
Jeffrey Lee
Committed by
ROOL
4 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Remove unused BangCam routine
Somewhere along the way, BangCam became redundant. Get rid of it.
parent
858949b6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
66 deletions
+0
-66
s/ARM600
s/ARM600
+0
-33
s/VMSAv6
s/VMSAv6
+0
-33
No files found.
s/ARM600
View file @
5dbb8207
...
...
@@ -118,39 +118,6 @@ BangCamUpdate ROUT
Pull
"r0, r3, r11, r14"
20
ADD
sp
,
sp
,
#
8
; junk old logical address, PPL
B
BangCamAltEntry
; and branch into BangCam code
; **************************************************************************************
;
; BangCam - Update CAM, MMU for page move, assuming page currently mapped out
;
; This routine maps a physical page to a given logical address
; It is assumed that the physical page is currently not mapped anywhere else
;
; in: r2 = physical page number
; r3 = logical address (2nd copy if doubly mapped)
; r9 = offset from 1st to 2nd copy of doubly mapped area (either source or dest, but not both)
; r11 = PPL
;
; out: r0, r1, r4, r6 corrupted
; r2, r3, r5, r7-r12 preserved
;
; NB The physical page number MUST be in range.
BangCam
ROUT
TST
r11
,
#
DynAreaFlags_DoublyMapped
; if area doubly mapped
SUBNE
r3
,
r3
,
r9
; then move ptr to 1st copy
LDR
r1
,
=
ZeroPage
+
PhysRamTable
; go through phys RAM table
MOV
r6
,
r2
; make copy of r2 (since that must be preserved)
10
LDMIA
r1
!,
{
r0
,
r4
}
; load next address, size
SUBS
r6
,
r6
,
r4
,
LSR
#
12
; subtract off that many pages
BCS
%BT10
; if more than that, go onto next bank
ADD
r6
,
r6
,
r4
,
LSR
#
12
; put back the ones which were too many
ADD
r0
,
r0
,
r6
,
LSL
#
12
; move on address by the number of pages left
BangCamAltEntry
LDR
r4
,
=
DuffEntry
; check for requests to map a page to nowhere
TEQ
r4
,
r3
; don't actually map anything to nowhere
MOVEQ
pc
,
lr
...
...
This diff is collapsed.
Click to expand it.
s/VMSAv6
View file @
5dbb8207
...
...
@@ -125,39 +125,6 @@ BangCamUpdate ROUT
Pull
"r0, r3, r11, r14"
20
ADD
sp
,
sp
,
#
8
; junk old logical address, PPL
B
BangCamAltEntry
; and branch into BangCam code
; **************************************************************************************
;
; BangCam - Update CAM, MMU for page move, assuming page currently mapped out
;
; This routine maps a physical page to a given logical address
; It is assumed that the physical page is currently not mapped anywhere else
;
; in: r2 = physical page number
; r3 = logical address (2nd copy if doubly mapped)
; r9 = offset from 1st to 2nd copy of doubly mapped area (either source or dest, but not both)
; r11 = PPL
;
; out: r0, r1, r4, r6 corrupted
; r2, r3, r5, r7-r12 preserved
;
; NB The physical page number MUST be in range.
BangCam
ROUT
TST
r11
,
#
DynAreaFlags_DoublyMapped
; if area doubly mapped
SUBNE
r3
,
r3
,
r9
; then move ptr to 1st copy
LDR
r1
,
=
ZeroPage
+
PhysRamTable
; go through phys RAM table
MOV
r6
,
r2
; make copy of r2 (since that must be preserved)
10
LDMIA
r1
!,
{
r0
,
r4
}
; load next address, size
SUBS
r6
,
r6
,
r4
,
LSR
#
12
; subtract off that many pages
BCS
%BT10
; if more than that, go onto next bank
ADD
r6
,
r6
,
r4
,
LSR
#
12
; put back the ones which were too many
ADD
r0
,
r0
,
r6
,
LSL
#
12
; move on address by the number of pages left
BangCamAltEntry
LDR
r4
,
=
DuffEntry
; check for requests to map a page to nowhere
TEQ
r4
,
r3
; don't actually map anything to nowhere
MOVEQ
pc
,
lr
...
...
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