Re: [PATCH 1/3 -v4] x86_64 EFI runtime service support: EFI basic runtime service support

H. Peter Anvin
2007-10-25T16:34:10Z

Thomas Gleixner wrote:
>
>> EFI runtime
>> services initialization are implemented in efi.c. Some x86_64
>> specifics are worth noting here. On x86_64, parameters passed to UEFI
>> firmware services need to follow the UEFI calling convention. For this
>> purpose, a set of functions named lin2win<x> (<x> is the number of
>> parameters) are implemented. EFI function calls are wrapped before
>> calling the firmware service.
>
> Why needs this to be called lin2win? We do not call Windows, we call
> EFI services, so please use a naming convention which is related to
> the functionality of the code.
>

Well, presumably EFI inherited the calling convention (as well as
another bunch of stupidity) from that corner.

-hpa