summaryrefslogtreecommitdiff
path: root/src/cpu/intel/model_1067x
diff options
context:
space:
mode:
authorAngel Pons <th3fanbus@gmail.com>2021-11-03 16:30:10 +0100
committerFelix Held <felix-coreboot@felixheld.de>2021-11-05 15:30:34 +0000
commit04c497a6ba6ba0219da5c4a32570fa46a0b239b9 (patch)
treee90bee14d343e80b17861fdc8eb404172294fa46 /src/cpu/intel/model_1067x
parentac07b03634dc5997901eae4b031b5f4975a2a71e (diff)
cpu/intel: Use unsigned types in `get_cpu_count()`
Change-Id: Id95e45a3eba384a61c02016b7663ec71c3ae1865 Signed-off-by: Angel Pons <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/58917 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
Diffstat (limited to 'src/cpu/intel/model_1067x')
-rw-r--r--src/cpu/intel/model_1067x/mp_init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cpu/intel/model_1067x/mp_init.c b/src/cpu/intel/model_1067x/mp_init.c
index 9a1fc42d3e..bc53214310 100644
--- a/src/cpu/intel/model_1067x/mp_init.c
+++ b/src/cpu/intel/model_1067x/mp_init.c
@@ -23,7 +23,7 @@ static void pre_mp_init(void)
static int get_cpu_count(void)
{
const struct cpuid_result cpuid1 = cpuid(1);
- const char cores = (cpuid1.ebx >> 16) & 0xf;
+ const unsigned int cores = (cpuid1.ebx >> 16) & 0xf;
printk(BIOS_DEBUG, "CPU has %u cores.\n", cores);