8 #include <linux/kernel.h>
11 #include <linux/types.h>
13 #include <asm/addrspace.h>
14 #include <asm/bootinfo.h>
18 #include <asm/sections.h>
28 #define CHUNK_SIZE 0x400000
30 static inline void pmax_setup_memory_region(
void)
32 volatile unsigned char *memory_page,
dummy;
33 char old_handler[0x80];
34 extern char genexcept_early;
46 mem_err == 0 && memory_page < (
unsigned char *)
CKSEG1 + 0x1e00000;
60 static inline void rex_setup_memory_region(
void)
71 for (i = 0; i < bitmap_size; i++) {
90 pmax_setup_memory_region();
92 rex_setup_memory_region();
104 #if IS_ENABLED(CONFIG_DECLANCE)