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
9a5ce9cb
Commit
9a5ce9cb
authored
Apr 30, 2003
by
Keith M. Wesolowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SPARC]: Replace "magic" values.
parent
700a4acb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
8 deletions
+4
-8
arch/sparc/kernel/head.S
arch/sparc/kernel/head.S
+4
-7
include/asm-sparc/page.h
include/asm-sparc/page.h
+0
-1
No files found.
arch/sparc/kernel/head.S
View file @
9a5ce9cb
...
@@ -25,6 +25,7 @@
...
@@ -25,6 +25,7 @@
#include <asm/winmacro.h>
#include <asm/winmacro.h>
#include <asm/thread_info.h> /* TI_UWINMASK */
#include <asm/thread_info.h> /* TI_UWINMASK */
#include <asm/errno.h>
#include <asm/errno.h>
#include <asm/pgtsrmmu.h> /* SRMMU_PGDIR_SHIFT */
.
data
.
data
/*
/*
...
@@ -623,12 +624,8 @@ srmmu_remap:
...
@@ -623,12 +624,8 @@ srmmu_remap:
/
*
Ok
,
pull
in
the
PTD
.
*/
/
*
Ok
,
pull
in
the
PTD
.
*/
lda
[%
o1
]
ASI_M_BYPASS
,
%
o2
!
This
is
the
0x0
16
MB
pgd
lda
[%
o1
]
ASI_M_BYPASS
,
%
o2
!
This
is
the
0x0
16
MB
pgd
/
*
Calculate
to
KERNBASE
entry
.
/
*
Calculate
to
KERNBASE
entry
.
*/
*
add
%
o1
,
KERNBASE
>>
(
SRMMU_PGDIR_SHIFT
-
2
),
%
o3
*
XXX
Should
not
use
empirical
constant
,
but
Gas
gets
an
XXX
*
XXX
upset
stomach
with
the
bitshift
I
would
have
to
use
XXX
*/
add
%
o1
,
0x3c0
,
%
o3
/
*
Poke
the
entry
into
the
calculated
address
.
*/
/
*
Poke
the
entry
into
the
calculated
address
.
*/
sta
%
o2
,
[%
o3
]
ASI_M_BYPASS
sta
%
o2
,
[%
o3
]
ASI_M_BYPASS
...
@@ -672,7 +669,7 @@ srmmu_nviking:
...
@@ -672,7 +669,7 @@ srmmu_nviking:
sll
%
g1
,
0x8
,
%
g1
!
make
phys
addr
for
l1
tbl
sll
%
g1
,
0x8
,
%
g1
!
make
phys
addr
for
l1
tbl
lda
[%
g1
]
ASI_M_BYPASS
,
%
g2
!
get
level1
entry
for
0x0
lda
[%
g1
]
ASI_M_BYPASS
,
%
g2
!
get
level1
entry
for
0x0
add
%
g1
,
0x3c0
,
%
g3
!
XXX
AWAY
WITH
EMPIRICALS
add
%
g1
,
KERNBASE
>>
(
SRMMU_PGDIR_SHIFT
-
2
),
%
g3
sta
%
g2
,
[%
g3
]
ASI_M_BYPASS
!
place
at
KERNBASE
entry
sta
%
g2
,
[%
g3
]
ASI_M_BYPASS
!
place
at
KERNBASE
entry
b
go_to_highmem
b
go_to_highmem
nop
!
wheee
....
nop
!
wheee
....
...
...
include/asm-sparc/page.h
View file @
9a5ce9cb
...
@@ -24,7 +24,6 @@
...
@@ -24,7 +24,6 @@
#ifdef __KERNEL__
#ifdef __KERNEL__
/* #include <asm/head.h> XXX */
/* for KERNBASE */
#include <asm/btfixup.h>
#include <asm/btfixup.h>
#ifndef __ASSEMBLY__
#ifndef __ASSEMBLY__
...
...
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