mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-05-31 11:25:30 +00:00
MISRA C requires that all unsigned constants should have the suffix 'U/UL'(e.g. 0xffU), but the assembler may not accept such C-style constants. To work this around, HOST_GDT_RING0_CODE_SEL and HOST_GDT_RING0_DATA_SEL must be explicitly spells out in assembly with a comment tracking the original expression from which the magic number is calculated. V1-->V2: Update commit information about HOST_GDT_RING0_CODE_SEL and HOST_GDT_RING0_DATA_SEL. V2-->V3: Update comment for HOST_GDT_RING0_CODE_SEL in assembly code. Signed-off-by: Xiangyang Wu <xiangyang.wu@intel.com> Reviewed-by: Junjie Mao <junjie.mao@intel.com> |
||
---|---|---|
.. | ||
x86 |