summaryrefslogtreecommitdiff
path: root/laden
diff options
context:
space:
mode:
authorneal <neal>2007-12-21 08:25:41 +0000
committerneal <neal>2007-12-21 08:25:41 +0000
commitf62b7954cf04886e242019da27d9cbf381d7efbf (patch)
tree7a0a8571445b01645f299f9ddcbf3ece445d6bb2 /laden
parent6c0ce51313b60e279f887d2b3885f773d5e8fdb5 (diff)
2007-12-21 Neal H. Walfield <neal@gnu.org>
* ia32-cmain.c (KMEM_MAX): Set to the last valid byte, not the first invalid byte.
Diffstat (limited to 'laden')
-rw-r--r--laden/ChangeLog5
-rw-r--r--laden/ia32-cmain.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/laden/ChangeLog b/laden/ChangeLog
index 689bec0..7fd1cdb 100644
--- a/laden/ChangeLog
+++ b/laden/ChangeLog
@@ -1,3 +1,8 @@
+2007-12-21 Neal H. Walfield <neal@gnu.org>
+
+ * ia32-cmain.c (KMEM_MAX): Set to the last valid byte, not the
+ first invalid byte.
+
2007-11-16 Neal H. Walfield <neal@gnu.org>
* laden.h (program_name): Change type to a const char [].
diff --git a/laden/ia32-cmain.c b/laden/ia32-cmain.c
index fc40668..f657e41 100644
--- a/laden/ia32-cmain.c
+++ b/laden/ia32-cmain.c
@@ -383,7 +383,7 @@ find_components (void)
#define KMEM_SIZE (16 * 0x100000)
/* The upper limit for the end of the kernel memory. */
-#define KMEM_MAX (240 * 0x100000)
+#define KMEM_MAX (240 * 0x100000 - 1)
if (CHECK_FLAG (mbi->flags, 6))
{