/* Let's fix the values returned by plpar_hcall9() */ for (i = 0; i < VPHN_REGISTER_COUNT; i++)
be_packed[i] = cpu_to_be64(packed[i]);
for (i = 1; i < VPHN_ASSOC_BUFSIZE; i++) {
u16 new = be16_to_cpup(field++);
if (is_32bit) { /* *Let'sconcatenatethe16bitsofthisfieldtothe *15lowerbitsofthepreviousfield
*/
unpacked[++nr_assoc_doms] =
cpu_to_be32(last << 16 | new);
is_32bit = false;
} elseif (new == VPHN_FIELD_UNUSED) /* This is the list terminator */ break; elseif (new & VPHN_FIELD_MSB) { /* Data is in the lower 15 bits of this field */
unpacked[++nr_assoc_doms] =
cpu_to_be32(new & VPHN_FIELD_MASK);
} else { /* *Dataisinthelower15bitsofthisfield *concatenatedwiththenext16bitfield
*/
last = new;
is_32bit = true;
}
}
/* The first cell contains the length of the property */
unpacked[0] = cpu_to_be32(nr_assoc_doms);
return nr_assoc_doms;
}
/* NOTE: This file is included by a selftest and built in userspace. */ #ifdef __KERNEL__ #include <asm/hvcall.h>
long hcall_vphn(unsignedlong cpu, u64 flags, __be32 *associativity)
{ long rc; long retbuf[PLPAR_HCALL9_BUFSIZE] = {0};
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.