/* * This file is subject to the terms and conditions of the GNU General Public * License. See the file "COPYING" in the main directory of this archive * for more details. * * Copyright (C) 1992 - 1997, 1999 Silicon Graphics, Inc. * Copyright (C) 1999 by Ralf Baechle
*/ #ifndef _ASM_SN_SN0_HUB_H #define _ASM_SN_SN0_HUB_H
/* The secret password; used to release protection */ #define HUB_PASSWORD 0x53474972756c6573ull
#ifdef __ASSEMBLY__ /* * Returns the local nasid into res.
*/
.macro GET_NASID_ASM res
dli \res, LOCAL_HUB_ADDR(NI_STATUS_REV_ID)
ld \res, (\res) and \res, NSRI_NODEID_MASK
dsrl \res, NSRI_NODEID_SHFT
.endm #else
/* * get_nasid() returns the physical node id number of the caller.
*/ staticinline nasid_t get_nasid(void)
{ return (nasid_t)((LOCAL_HUB_L(NI_STATUS_REV_ID) & NSRI_NODEID_MASK)
>> NSRI_NODEID_SHFT);
} #endif
#endif/* _ASM_SN_SN0_HUB_H */
Messung V0.5
¤ Dauer der Verarbeitung: 0.1 Sekunden
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.