Branch: refs/heads/master
  Home:   https://github.com/tianocore/edk2
  Commit: 8a5782d704cfeb78aafdec1c03685107586f4ee6
      
https://github.com/tianocore/edk2/commit/8a5782d704cfeb78aafdec1c03685107586f4ee6
  Author: Zhiguang Liu <zhiguang....@intel.com>
  Date:   2022-07-25 (Mon, 25 Jul 2022)

  Changed paths:
    M UefiCpuPkg/Library/CpuExceptionHandlerLib/CpuExceptionCommon.h
    M UefiCpuPkg/Library/CpuExceptionHandlerLib/Ia32/ExceptionHandlerAsm.nasm
    M 
UefiCpuPkg/Library/CpuExceptionHandlerLib/X64/Xcode5ExceptionHandlerAsm.nasm

  Log Message:
  -----------
  UefiCpuPkg: Fix nasm warning "signed byte value exceeds"

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 "signed byte value exceeds".
To avoid such warning, use dword instead of byte, this will increase 3 bytes
for each IdtVector.
For IA32, the size of IdtVector will increase from 10 bytes to 13 bytes.
For X64, the size of IdtVector will increase from 15 bytes to 18 bytes.

Cc: Eric Dong <eric.d...@intel.com>
Cc: Ray Ni <ray...@intel.com>
Cc: Rahul Kumar <rahul1.ku...@intel.com>
Cc: Debkumar De <debkumar...@intel.com>
Cc: Harry Han <harry....@intel.com>
Cc: Catharine West <catharine.w...@intel.com>
Reviewed-by: Ray Ni <ray...@intel.com>
Signed-off-by: Zhiguang Liu <zhiguang....@intel.com>




_______________________________________________
edk2-commits mailing list
edk2-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to