From: Rabin Vincent <rab...@axis.com>

Enable SPARSEMEM support by setting this two values.  It's not clear to
me if they'll work on all MIPS platforms, but they do on the ones I have
access to and should provide reasonable defaults.
---
 defs.h | 3 +++
 mips.c | 2 ++
 2 files changed, 5 insertions(+)

diff --git a/defs.h b/defs.h
index 85300cc..d64db92 100644
--- a/defs.h
+++ b/defs.h
@@ -3125,6 +3125,9 @@ struct arm64_stackframe {
 #define __swp_offset(entry)    SWP_OFFSET(entry)
 
 #define TIF_SIGPENDING         (2)
+
+#define _SECTION_SIZE_BITS     26
+#define _MAX_PHYSMEM_BITS      32
 #endif  /* MIPS */
 
 #ifdef X86
diff --git a/mips.c b/mips.c
index 7ad6f61..cf3e1ae 100644
--- a/mips.c
+++ b/mips.c
@@ -903,6 +903,8 @@ mips_init(int when)
                machdep->dump_irq = generic_dump_irq;
                machdep->show_interrupts = generic_show_interrupts;
                machdep->get_irq_affinity = generic_get_irq_affinity;
+               machdep->section_size_bits = _SECTION_SIZE_BITS;
+               machdep->max_physmem_bits = _MAX_PHYSMEM_BITS;
                ARRAY_LENGTH_INIT(machdep->nr_irqs, irq_desc,
                        "irq_desc", NULL, 0);
                mips_stackframe_init();
-- 
2.1.4

--
Crash-utility mailing list
Crash-utility@redhat.com
https://www.redhat.com/mailman/listinfo/crash-utility

Reply via email to