projects
/
seabios.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
643062f
)
Add comment explaining why mptable is in low memory.
author
Kevin O'Connor
<kevin@koconnor.net>
Tue, 5 Jan 2010 01:49:45 +0000
(20:49 -0500)
committer
Kevin O'Connor
<kevin@koconnor.net>
Tue, 5 Jan 2010 01:49:45 +0000
(20:49 -0500)
src/mptable.c
patch
|
blob
|
history
diff --git
a/src/mptable.c
b/src/mptable.c
index eba7d97436727cfafffbdd2b4cae2635a5eab87f..f65bbebd08703971f081b5d1c0a29bdb835c5f66 100644
(file)
--- a/
src/mptable.c
+++ b/
src/mptable.c
@@
-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) {