staticint opal_con_open(void)
{ /* * When OPAL loads the boot kernel it stashes the OPAL base and entry * address in r8 and r9 so the kernel can use the OPAL console * before unflattening the devicetree. While executing the wrapper will * probably trash r8 and r9 so this kentry hook restores them before * entering the decompressed kernel.
*/
platform_ops.kentry = opal_kentry; return 0;
}
staticvoid opal_con_putc(unsignedchar c)
{
int64_t rc;
uint64_t olen, len;
do {
rc = opal_console_write_buffer_space(opal_con_id, &olen);
len = be64_to_cpu(olen); if (rc) return;
opal_poll_events(NULL);
} while (len < 1);
olen = cpu_to_be64(1);
opal_console_write(opal_con_id, &olen, &c);
}
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.