audk/OvmfPkg/QemuVideoDxe
Scott Duplichan 75f8e3aaff OvmfPkg: QemuVideoDxe: the VBE shim needs no 64-bit shifts (VS2010)
The SegmentC local variable has type EFI_PHYSICAL_ADDRESS for (justified)
style reasons. However, the 64-bit bit-shifts that it undergoes result in
intrinsic calls when built with VS2010 for Ia32 / NOOPT.

The concrete value of SegmentC, 0xC0000, and the results  of the bitops
that are based on it, are statically computeable. Cast SegmentC to UINT32
before subjecting it to bitwise operations; we can see in advance that
this won't lead to range loss.

Contributed-under: TianoCore Contribution Agreement 1.0

Signed-off-by: Scott Duplichan <scott@notabs.org>

[lersek@redhat.com: dropped now superfluous outermost parens; commit msg]

Signed-off-by: Laszlo Ersek <lersek@redhat.com>

Build-tested-by: Scott Duplichan <scott@notabs.org>

Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>

git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16385 6f19259b-4bc3-4df7-8a09-765794883524
2014-11-14 10:23:55 +00:00
..
ComponentName.c OvmfPkg: Add QemuVideoDxe driver 2011-04-12 15:08:51 +00:00
Driver.c OvmfPkg: QemuVideoDxe: work around misreported QXL framebuffer size 2014-08-29 17:27:20 +00:00
DriverSupportedEfiVersion.c OvmfPkg: Add QemuVideoDxe driver 2011-04-12 15:08:51 +00:00
Gop.c OvmfPkg: QemuVideoDxe: clarify QEMU_VIDEO_MODE_DATA.ModeNumber 2014-03-03 08:40:59 +00:00
Initialize.c OvmfPkg: QemuVideoDxe: work around misreported QXL framebuffer size 2014-08-29 17:27:20 +00:00
Qemu.h OvmfPkg: QemuVideoDxe: work around misreported QXL framebuffer size 2014-08-29 17:27:20 +00:00
QemuVideoDxe.inf OvmfPkg: QemuVideoDxe: Int10h stub for Windows 7 & 2008 (stdvga, QXL) 2014-05-20 16:33:00 +00:00
VbeShim.asm OvmfPkg: QemuVideoDxe: Int10h stub for Windows 7 & 2008 (stdvga, QXL) 2014-05-20 16:33:00 +00:00
VbeShim.c OvmfPkg: QemuVideoDxe: the VBE shim needs no 64-bit shifts (VS2010) 2014-11-14 10:23:55 +00:00
VbeShim.h OvmfPkg: QemuVideoDxe: Int10h stub for Windows 7 & 2008 (stdvga, QXL) 2014-05-20 16:33:00 +00:00
VbeShim.sh OvmfPkg: QemuVideoDxe: Int10h stub for Windows 7 & 2008 (stdvga, QXL) 2014-05-20 16:33:00 +00:00