// SPDX-License-Identifier: GPL-2.0-only /* * memconsole-x86-legacy.c * * EBDA specific parts of the memory based BIOS console. * * Copyright 2017 Google Inc.
*/
/* * Search through the EBDA for the BIOS Memory Console, and * set the global variables to point to it. Return true if found.
*/ staticbool memconsole_ebda_init(void)
{ unsignedint address;
size_t length, cur;
address = get_bios_ebda(); if (!address) {
pr_info("memconsole: BIOS EBDA non-existent.\n"); returnfalse;
}
/* EBDA length is byte 0 of EBDA (in KB) */
length = *(u8 *)phys_to_virt(address);
length <<= 10; /* convert to bytes */
/* * Search through EBDA for BIOS memory console structure * note: signature is not necessarily dword-aligned
*/ for (cur = 0; cur < length; cur++) { struct biosmemcon_ebda *hdr = phys_to_virt(address + cur);
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.