Extensible Firmware Interface Specification
19-68 12/01/02 Version 1.10
Description
An EBC image’s original PE32+ entry point is not directly executable by the native processor.
Therefore to execute an EBC image, a thunk (which invokes the EBC interpreter for the image’s
original entry point) must be created for the entry point, and the thunk is executed when the EBC
image is started. Since the thunks may be created on-the-fly in memory, the processor’s instruction
cache may require to be flushed after thunks are created. The caller to this EBC service can
provide a pointer to a function to flush the instruction cache for any thunks created after the
CreateThunk()
service has been called. If an instruction-cache flush callback is not provided
to the interpreter, then the interpreter assumes the system has no instruction cache, or that flushing
the cache is not required following creation of thunks.
Status Codes Returned
EFI_SUCCESS The function completed successfully.