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
6e9a5549
Commit
6e9a5549
authored
Jan 18, 2004
by
Andrew Morton
Committed by
Linus Torvalds
Jan 18, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] sn: SAL interface clean up
From: Pat Gefre <pfg@sgi.com> SAL interface clean up
parent
b41a3eec
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
21 deletions
+27
-21
arch/ia64/sn/io/sn2/klconflib.c
arch/ia64/sn/io/sn2/klconflib.c
+0
-1
include/asm-ia64/sn/nodepda.h
include/asm-ia64/sn/nodepda.h
+2
-0
include/asm-ia64/sn/sn_sal.h
include/asm-ia64/sn/sn_sal.h
+25
-20
No files found.
arch/ia64/sn/io/sn2/klconflib.c
View file @
6e9a5549
...
...
@@ -32,7 +32,6 @@
#endif
/* DEBUG_KLGRAPH */
lboard_t
*
root_lboard
[
MAX_COMPACT_NODES
];
u64
klgraph_addr
[
MAX_COMPACT_NODES
];
static
int
hasmetarouter
;
...
...
include/asm-ia64/sn/nodepda.h
View file @
6e9a5549
...
...
@@ -65,6 +65,8 @@ struct nodepda_s {
nodepda_router_info_t
**
npda_rip_last
;
spinlock_t
bist_lock
;
/*
* The BTEs on this node are shared by the local cpus
*/
...
...
include/asm-ia64/sn/sn_sal.h
View file @
6e9a5549
...
...
@@ -16,7 +16,9 @@
#include <asm/sal.h>
#include <asm/sn/sn_cpuid.h>
#include <asm/sn/arch.h>
#include <asm/sn/nodepda.h>
#include <asm/sn/klconfig.h>
// SGI Specific Calls
#define SN_SAL_POD_MODE 0x02000001
...
...
@@ -167,28 +169,23 @@ static inline u64
ia64_sn_get_klconfig_addr
(
nasid_t
nasid
)
{
struct
ia64_sal_retval
ret_stuff
;
extern
u64
klgraph_addr
[];
int
cnodeid
;
cnodeid
=
nasid_to_cnodeid
(
nasid
);
if
(
klgraph_addr
[
cnodeid
]
==
0
)
{
ret_stuff
.
status
=
0
;
ret_stuff
.
v0
=
0
;
ret_stuff
.
v1
=
0
;
ret_stuff
.
v2
=
0
;
SAL_CALL
(
ret_stuff
,
SN_SAL_GET_KLCONFIG_ADDR
,
(
u64
)
nasid
,
0
,
0
,
0
,
0
,
0
,
0
);
/*
* We should panic if a valid cnode nasid does not produce
* a klconfig address.
*/
if
(
ret_stuff
.
status
!=
0
)
{
panic
(
"ia64_sn_get_klconfig_addr: Returned error %lx
\n
"
,
ret_stuff
.
status
);
}
klgraph_addr
[
cnodeid
]
=
ret_stuff
.
v0
;
ret_stuff
.
status
=
0
;
ret_stuff
.
v0
=
0
;
ret_stuff
.
v1
=
0
;
ret_stuff
.
v2
=
0
;
SAL_CALL
(
ret_stuff
,
SN_SAL_GET_KLCONFIG_ADDR
,
(
u64
)
nasid
,
0
,
0
,
0
,
0
,
0
,
0
);
/*
* We should panic if a valid cnode nasid does not produce
* a klconfig address.
*/
if
(
ret_stuff
.
status
!=
0
)
{
panic
(
"ia64_sn_get_klconfig_addr: Returned error %lx
\n
"
,
ret_stuff
.
status
);
}
return
(
klgraph_addr
[
cnodeid
]
);
return
(
ret_stuff
.
v0
);
}
/*
...
...
@@ -597,8 +594,16 @@ static inline int
sn_change_memprotect
(
u64
paddr
,
u64
len
,
u64
perms
,
u64
*
nasid_array
)
{
struct
ia64_sal_retval
ret_stuff
;
SAL_CALL
(
ret_stuff
,
SN_SAL_MEMPROTECT
,
paddr
,
len
,
nasid_array
,
int
cnodeid
;
unsigned
long
irq_flags
;
cnodeid
=
nasid_to_cnodeid
(
get_node_number
(
paddr
));
spin_lock
(
&
NODEPDA
(
cnodeid
)
->
bist_lock
);
local_irq_save
(
irq_flags
);
SAL_CALL_NOLOCK
(
ret_stuff
,
SN_SAL_MEMPROTECT
,
paddr
,
len
,
nasid_array
,
perms
,
0
,
0
,
0
);
local_irq_restore
(
irq_flags
);
spin_unlock
(
&
NODEPDA
(
cnodeid
)
->
bist_lock
);
return
ret_stuff
.
status
;
}
#define SN_MEMPROT_ACCESS_CLASS_0 0x14a080
...
...
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