From ea08eeccae9297f7aabd2ef7f0c2517ac4549acc Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Tue, 20 Feb 2024 01:18:26 +0000
Subject: [PATCH] write in 30M

---
 kernel/arch/mips/sgi-ip32/ip32-memory.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/kernel/arch/mips/sgi-ip32/ip32-memory.c b/kernel/arch/mips/sgi-ip32/ip32-memory.c
index 828ce13..0f53fed 100644
--- a/kernel/arch/mips/sgi-ip32/ip32-memory.c
+++ b/kernel/arch/mips/sgi-ip32/ip32-memory.c
@@ -9,13 +9,12 @@
 #include <linux/types.h>
 #include <linux/init.h>
 #include <linux/kernel.h>
+#include <linux/memblock.h>
 #include <linux/mm.h>
 
 #include <asm/ip32/crime.h>
 #include <asm/bootinfo.h>
 #include <asm/page.h>
-#include <asm/pgtable.h>
-#include <asm/pgalloc.h>
 
 extern void crime_init(void);
 
@@ -38,7 +37,7 @@
 
 		printk("CRIME MC: bank %u base 0x%016Lx size %LuMiB\n",
 			bank, base, size >> 20);
-		add_memory_region(base, size, BOOT_MEM_RAM);
+		memblock_add(base, size);
 	}
 }
 

--
Gitblit v1.6.2