/* SPDX-License-Identifier: GPL-2.0 */ /* * definition for store system information stsi * * Copyright IBM Corp. 2001, 2008 * * Author(s): Ulrich Weigand <weigand@de.ibm.com> * Christian Borntraeger <borntraeger@de.ibm.com>
*/
/* * stsi - store system information * * Returns the current configuration level if function code 0 was specified. * Otherwise returns 0 on success or a negative value on error.
*/ staticinlineint stsi(void *sysinfo, int fc, int sel1, int sel2)
{ int r0 = (fc << 28) | sel1; int cc;
asmvolatile( " lr %%r0,%[r0]\n" " lr %%r1,%[r1]\n" " stsi %[sysinfo]\n" " lr %[r0],%%r0\n"
CC_IPM(cc)
: CC_OUT(cc, cc), [r0] "+d" (r0), [sysinfo] "=Q" (*(char *)sysinfo)
: [r1] "d" (sel2)
: CC_CLOBBER_LIST("0", "1", "memory")); if (cc == 3) return -EOPNOTSUPP; return fc ? 0 : (unsignedint)r0 >> 28;
}
/* * Returns the maximum nesting level supported by the cpu topology code. * The current maximum level is 4 which is the drawer level.
*/ staticinlineunsignedchar topology_mnest_limit(void)
{ return min(topology_max_mnest, 4);
}
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.