diff options
| author | Ard Biesheuvel <[email protected]> | 2019-12-24 16:10:13 +0100 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2019-12-25 10:49:20 +0100 |
| commit | afc4cc71cf78a8d691023da8ebcc31c3394a1674 (patch) | |
| tree | 6fe47bd9943272dc08d8a92039c5ab886df6f1fa /tools/perf/scripts/python/exported-sql-viewer.py | |
| parent | 8f24f8c2fc82f701866419dcb594e2cc1d3f46ba (diff) | |
efi/libstub/x86: Avoid thunking for native firmware calls
We use special wrapper routines to invoke firmware services in the
native case as well as the mixed mode case. For mixed mode, the need
is obvious, but for the native cases, we can simply rely on the
compiler to generate the indirect call, given that GCC now has
support for the MS calling convention (and has had it for quite some
time now). Note that on i386, the decompressor and the EFI stub are not
built with -mregparm=3 like the rest of the i386 kernel, so we can
safely allow the compiler to emit the indirect calls here as well.
So drop all the wrappers and indirection, and switch to either native
calls, or direct calls into the thunk routine for mixed mode.
Signed-off-by: Ard Biesheuvel <[email protected]>
Cc: Arvind Sankar <[email protected]>
Cc: Borislav Petkov <[email protected]>
Cc: James Morse <[email protected]>
Cc: Matt Fleming <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: [email protected]
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions