@@ -160,7 +160,6 @@ config RISCV
select THREAD_INFO_IN_TASK
select TRACE_IRQFLAGS_SUPPORT
select UACCESS_MEMCPY if !MMU
- select ZONE_DMA32 if 64BIT
config CLANG_SUPPORTS_DYNAMIC_FTRACE
def_bool CC_IS_CLANG
@@ -106,7 +106,7 @@ typedef struct page *pgtable_t;
* We override this value as its generic definition uses __pa too early in
* the boot process (before kernel_map.va_pa_offset is set).
*/
-#define MIN_MEMBLOCK_ADDR 0
+#define MIN_MEMBLOCK_ADDR 0x60400000ULL
#endif
#ifdef CONFIG_MMU
@@ -1496,6 +1496,8 @@ static int __ref kernel_init(void *unused)
!try_to_run_init_process("/bin/sh"))
return 0;
+ show_mem(0, NULL);
+
panic("No working init found. Try passing init= option to kernel. "
"See Linux Documentation/admin-guide/init.rst for guidance.");
}