aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2010-07-26 22:34:37 -0400
committerKevin O'Connor <kevin@koconnor.net>2010-07-26 22:34:37 -0400
commit9fd485148dedfe080831fedb2ad7bf5959766c42 (patch)
tree92c3ddd14aa429f7baaffc0071c36f2fbd811227
parentabf31d367a8e80a13cb6d2a8a6c499914c2e91e7 (diff)
downloadseabios-9fd485148dedfe080831fedb2ad7bf5959766c42.tar.gz
Minor - clarify bit logic in mptable.c.
-rw-r--r--src/mptable.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mptable.c b/src/mptable.c
index bf48a5e3..e5952c3a 100644
--- a/src/mptable.c
+++ b/src/mptable.c
@@ -1,6 +1,6 @@
// MPTable generation (on emulators)
//
-// Copyright (C) 2008,2009 Kevin O'Connor <kevin@koconnor.net>
+// Copyright (C) 2008-2010 Kevin O'Connor <kevin@koconnor.net>
// Copyright (C) 2006 Fabrice Bellard
//
// This file may be distributed under the terms of the GNU LGPLv3 license.
@@ -59,7 +59,7 @@ mptable_init(void)
cpu->apicid = i;
cpu->apicver = apic_version;
/* cpu flags: enabled, bootstrap cpu */
- cpu->cpuflag = (i < CountCPUs) | ((i == 0) << 1);
+ cpu->cpuflag = ((i<CountCPUs) ? 0x01 : 0x00) | ((i==0) ? 0x02 : 0x00);
cpu->cpusignature = cpuid_signature;
cpu->featureflag = cpuid_features;
cpu++;