gramineproject / gramine-tdx

A library OS for Linux multi-process applications, with Intel TDX support (experimental)
GNU Lesser General Public License v3.0
19 stars 5 forks source link

[PAL/vm-common,TDX] Fix nasm warning on ambiguous operand size #29

Closed dimakuv closed 4 months ago

dimakuv commented 4 months ago

Description of the changes

Newer nasm (2.17rc0) complains about ambiguous operand size on asm like push $123. That's because the default operand size is 32 bits even in 64-bit mode. Thus, we need an explicit operand-size suffix: pushq.

How to test this PR?

Build with new nasm.


This change is Reviewable