// SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2013, 2014 Linaro Ltd; <roy.franz@linaro.org> * * This file implements the EFI boot stub for the arm64 kernel. * Adapted from ARM version by Mark Salter <msalter@redhat.com>
*/
unsignedlong primary_entry_offset(void)
{ /* * When built as part of the kernel, the EFI stub cannot branch to the * kernel proper via the image header, as the PE/COFF header is * strictly not part of the in-memory presentation of the image, only * of the file representation. So instead, we need to jump to the * actual entrypoint in the .text region of the image.
*/ return (char *)primary_entry - _text;
}
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.