From ccd233b4bc6c505b01f2e93dc7a9d9bb128d8b3e Mon Sep 17 00:00:00 2001 From: Elyes HAOUAS Date: Mon, 3 Jul 2017 21:48:52 +0200 Subject: sb/intel/i82870: Add whitespace around '<<' MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ic8b0e6404a3f90312f7d2d3b6c367b0a1d9ec6e2 Signed-off-by: Elyes HAOUAS Reviewed-on: https://review.coreboot.org/20460 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth Reviewed-by: Philippe Mathieu-Daudé --- src/southbridge/intel/i82870/ioapic.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/southbridge/intel') diff --git a/src/southbridge/intel/i82870/ioapic.c b/src/southbridge/intel/i82870/ioapic.c index a02a2afde6..da7da5e8c6 100644 --- a/src/southbridge/intel/i82870/ioapic.c +++ b/src/southbridge/intel/i82870/ioapic.c @@ -68,9 +68,9 @@ static void p64h2_ioapic_init(device_t dev) apic_id <<= 24; // Convert ID to bitmask *pIndexRegister = 0; // Select APIC ID register - *pWindowRegister = (*pWindowRegister & ~(0xF<<24)) | apic_id; // Set the ID + *pWindowRegister = (*pWindowRegister & ~(0x0f << 24)) | apic_id; // Set the ID - if ((*pWindowRegister & (0xF<<24)) != apic_id) + if ((*pWindowRegister & (0x0f << 24)) != apic_id) die("p64h2_ioapic_init failed"); *pIndexRegister = 3; // Select Boot Configuration register -- cgit v1.2.3