[PATCH 03/10] Limit MPS tables to 15 CPUs to fit with 4-bit APIC addressing.

Magnus Christensson mch at virtutech.com
Tue Nov 3 12:50:45 CET 2009


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

diff --git a/src/mptable.c b/src/mptable.c
index 525188d..7e8486d 100644
--- a/src/mptable.c
+++ b/src/mptable.c
@@ -86,6 +86,12 @@ mptable_init(void)
             cpu->cpusignature = 0x600;
             cpu->featureflag = 0x201;
         }
+
+        /* Limit the CPU count to 15 in the MPS tables, which is the limit in
+           the 4-bit legacy APIC addressing scheme. Operating systems can find
+           all CPUs through the ACPI tables. */
+        if (actual_cpu_count >= 15)
+            break;
     }
 
     config->entrycount = actual_cpu_count + 2 + 16;
-- 
1.6.2.5


--------------080100040501080908060605
Content-Type: text/x-patch;
 name="0004-Remove-device-access-from-loop-to-make-it-faster-whe.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
 filename*0="0004-Remove-device-access-from-loop-to-make-it-faster-whe.pa";
 filename*1="tch"



More information about the coreboot mailing list