UEFI: assembly files need to take calling convention into account
For UEFI, the calling conventions on x86_64 follow the Microsoft calling conventions, which are not compatible with Haiku's calling conventions.
As a result, existing functions written in assembly fail to run as expected. E.g. byteorder.S currently returns 0 for all of the byteswap routines, which are used elsewhere, such as the definitions for the B_BENDIAN_xyz macros, and the ntohs function.
References: Wikipedia, OSDev Wiki
new → closed