Add comment explaining why mptable is in low memory.
authorKevin O'Connor <kevin@koconnor.net>
Tue, 5 Jan 2010 01:49:45 +0000 (20:49 -0500)
committerKevin O'Connor <kevin@koconnor.net>
Tue, 5 Jan 2010 01:49:45 +0000 (20:49 -0500)
src/mptable.c

index eba7d97436727cfafffbdd2b4cae2635a5eab87f..f65bbebd08703971f081b5d1c0a29bdb835c5f66 100644 (file)
@@ -179,7 +179,9 @@ mptable_init(void)
     config->length = length;
     config->checksum -= checksum(config, length);
 
-    // Allocate final memory locations
+    // Allocate final memory locations.  (In theory the config
+    // structure can go in high memory, but Linux kernels before
+    // v2.6.30 crash with that.)
     struct mptable_config_s *finalconfig = malloc_fseg(length);
     struct mptable_floating_s *floating = malloc_fseg(sizeof(*floating));
     if (!finalconfig || !floating) {