[PATCH 01/10] Fit cpuflag in mptable (| has higher priority than ?:)

Magnus Christensson mch at virtutech.com
Tue Nov 3 12:49:27 CET 2009


---
 src/mptable.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mptable.c b/src/mptable.c
index 3945d2e..805fe1b 100644
--- a/src/mptable.c
+++ b/src/mptable.c
@@ -60,7 +60,7 @@ mptable_init(void)
         cpu->apicver = 0x11;
         /* cpu flags: enabled, bootstrap cpu */
         if (i < CountCPUs)
-            cpu->cpuflag = 1 | (i == 0) ? 2 : 0;
+            cpu->cpuflag = 1 | ((i == 0) ? 2 : 0);
         else
             cpu->cpuflag = 0;
         if (cpuid_signature) {
-- 
1.6.2.5


--------------080100040501080908060605
Content-Type: text/x-patch;
 name="0002-Only-add-the-first-logical-CPU-in-each-physical-CPU.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
 filename*0="0002-Only-add-the-first-logical-CPU-in-each-physical-CPU.pat";
 filename*1="ch"



More information about the coreboot mailing list