Re: [edk2-devel] [PATCH v2] UefiCpuPkg: Fix nasm warning "signed byte value exceeds"

2022-07-07 Thread Ni, Ray
Reviewed-by: Ray Ni > -Original Message- > From: Liu, Zhiguang > Sent: Wednesday, July 6, 2022 9:10 PM > To: devel@edk2.groups.io > Cc: Liu, Zhiguang ; Dong, Eric ; > Ni, Ray ; Kumar, > Rahul1 ; De, Debkumar ; Han, > Harry ; West, > Catharine > Subject: [PATCH v2] UefiCpuPkg: Fix nasm

[edk2-devel] [PATCH v2] UefiCpuPkg: Fix nasm warning "signed byte value exceeds"

2022-07-06 Thread Zhiguang Liu
Currently, "push byte %[Vector]" causes nasm warning when Vector is larger than 0x7F. This is because push accepts a signed value, and byte means signed int8. Maximum signed int8 is 0x7F. When Vector is larger the 0x7F, for example, when Vector is 255, byte 255 turns to -1, and causes the warning "