I don't know why the fake get_mmap_entry claims to succeed with high
memory and fail with low ... but there's no need for it to do any of
that, because if it would just fail, get_memsize() would be used
instead. And that's OK. Thus this patch.
2000-05-19 Chip Salzenberg <[EMAIL PROTECTED]>
* grub/asmstub.c (get_mmap_entry): Always fail.
The only source of fake memory info is get_memsize().
Index: grub/asmstub.c
diff -u -2 -r1.46 asmstub.c
--- grub/asmstub.c 2000/04/05 02:29:49 1.46
+++ grub/asmstub.c 2000/05/20 05:05:42
@@ -709,23 +709,9 @@
/* Fetch the next entry in the memory map and return the continuation
- value. DESC is a pointer to the descriptor buffer, and CONT is the
- previous continuation value (0 to get the first entry in the
- map). */
+ value. We pretend that this feature is not available. */
int
get_mmap_entry (struct mmar_desc *desc, int cont)
{
- if (! cont)
- {
- /* First entry, located at 1MB. */
- desc->desc_len = sizeof (*desc) - sizeof (desc->desc_len);
- desc->addr = 1024 * 1024;
- desc->length = EXTENDED_MEMSIZE;
- desc->type = MMAR_DESC_TYPE_AVAILABLE;
- }
- else
- {
- /* No more entries, so give an error. */
- desc->desc_len = 0;
- }
+ desc->desc_len = 0;
return 0;
}
--
Chip Salzenberg - a.k.a. - <[EMAIL PROTECTED]>
"I wanted to play hopscotch with the impenetrable mystery of existence,
but he stepped in a wormhole and had to go in early." // MST3K