aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-ia64/sn/sn_sal.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-ia64/sn/sn_sal.h')
-rw-r--r--include/asm-ia64/sn/sn_sal.h12
1 files changed, 1 insertions, 11 deletions
diff --git a/include/asm-ia64/sn/sn_sal.h b/include/asm-ia64/sn/sn_sal.h
index fea35b33d4e4..5ad855db8464 100644
--- a/include/asm-ia64/sn/sn_sal.h
+++ b/include/asm-ia64/sn/sn_sal.h
@@ -198,26 +198,16 @@ ia64_sn_get_master_baseio_nasid(void)
198 return ret_stuff.v0; 198 return ret_stuff.v0;
199} 199}
200 200
201static inline char * 201static inline void *
202ia64_sn_get_klconfig_addr(nasid_t nasid) 202ia64_sn_get_klconfig_addr(nasid_t nasid)
203{ 203{
204 struct ia64_sal_retval ret_stuff; 204 struct ia64_sal_retval ret_stuff;
205 int cnodeid;
206 205
207 cnodeid = nasid_to_cnodeid(nasid);
208 ret_stuff.status = 0; 206 ret_stuff.status = 0;
209 ret_stuff.v0 = 0; 207 ret_stuff.v0 = 0;
210 ret_stuff.v1 = 0; 208 ret_stuff.v1 = 0;
211 ret_stuff.v2 = 0; 209 ret_stuff.v2 = 0;
212 SAL_CALL(ret_stuff, SN_SAL_GET_KLCONFIG_ADDR, (u64)nasid, 0, 0, 0, 0, 0, 0); 210 SAL_CALL(ret_stuff, SN_SAL_GET_KLCONFIG_ADDR, (u64)nasid, 0, 0, 0, 0, 0, 0);
213
214 /*
215 * We should panic if a valid cnode nasid does not produce
216 * a klconfig address.
217 */
218 if (ret_stuff.status != 0) {
219 panic("ia64_sn_get_klconfig_addr: Returned error %lx\n", ret_stuff.status);
220 }
221 return ret_stuff.v0 ? __va(ret_stuff.v0) : NULL; 211 return ret_stuff.v0 ? __va(ret_stuff.v0) : NULL;
222} 212}
223 213