diff options
author | Tony Luck <tony.luck@intel.com> | 2005-10-28 16:24:06 -0400 |
---|---|---|
committer | Tony Luck <tony.luck@intel.com> | 2005-10-28 16:24:06 -0400 |
commit | a1e78db3f54d3481726ed2d3d58d8ad5b19b13d0 (patch) | |
tree | 5793f26d8787ee8462a0ac4316b4a07d7cfa04af /include/asm-ia64/sn/sn_sal.h | |
parent | fbbb0bd1f6eb2d8b28d246a4821453bdc3d01b2f (diff) | |
parent | 59c422358d6573716f2bf2e78e5b12c20eff5a31 (diff) |
Pull define-node-cleanup into release branch
Diffstat (limited to 'include/asm-ia64/sn/sn_sal.h')
-rw-r--r-- | include/asm-ia64/sn/sn_sal.h | 12 |
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 92df48a0412f..81af4e51afa6 100644 --- a/include/asm-ia64/sn/sn_sal.h +++ b/include/asm-ia64/sn/sn_sal.h | |||
@@ -206,26 +206,16 @@ ia64_sn_get_master_baseio_nasid(void) | |||
206 | return ret_stuff.v0; | 206 | return ret_stuff.v0; |
207 | } | 207 | } |
208 | 208 | ||
209 | static inline char * | 209 | static inline void * |
210 | ia64_sn_get_klconfig_addr(nasid_t nasid) | 210 | ia64_sn_get_klconfig_addr(nasid_t nasid) |
211 | { | 211 | { |
212 | struct ia64_sal_retval ret_stuff; | 212 | struct ia64_sal_retval ret_stuff; |
213 | int cnodeid; | ||
214 | 213 | ||
215 | cnodeid = nasid_to_cnodeid(nasid); | ||
216 | ret_stuff.status = 0; | 214 | ret_stuff.status = 0; |
217 | ret_stuff.v0 = 0; | 215 | ret_stuff.v0 = 0; |
218 | ret_stuff.v1 = 0; | 216 | ret_stuff.v1 = 0; |
219 | ret_stuff.v2 = 0; | 217 | ret_stuff.v2 = 0; |
220 | SAL_CALL(ret_stuff, SN_SAL_GET_KLCONFIG_ADDR, (u64)nasid, 0, 0, 0, 0, 0, 0); | 218 | SAL_CALL(ret_stuff, SN_SAL_GET_KLCONFIG_ADDR, (u64)nasid, 0, 0, 0, 0, 0, 0); |
221 | |||
222 | /* | ||
223 | * We should panic if a valid cnode nasid does not produce | ||
224 | * a klconfig address. | ||
225 | */ | ||
226 | if (ret_stuff.status != 0) { | ||
227 | panic("ia64_sn_get_klconfig_addr: Returned error %lx\n", ret_stuff.status); | ||
228 | } | ||
229 | return ret_stuff.v0 ? __va(ret_stuff.v0) : NULL; | 219 | return ret_stuff.v0 ? __va(ret_stuff.v0) : NULL; |
230 | } | 220 | } |
231 | 221 | ||