15 #include <linux/kernel.h>
16 #include <linux/types.h>
17 #include <linux/sched.h>
24 #include <asm/pgtable.h>
25 #include <asm/bootinfo.h>
33 #define ARC_PAGE_SHIFT 12
37 return (
struct linux_mdesc *) ARC_CALL1(get_mdesc, Current);
41 static char *arcs_mtypes[8] = {
47 "Standalone Program Pages",
48 "ARCS Temp Storage Area",
49 "ARCS Permanent Storage Area"
52 static char *arc_mtypes[8] = {
54 "SystemParameterBlock",
62 #define mtypes(a) (prom_flags & PROM_FLAG_ARCS) ? arcs_mtypes[a.arcs] \
109 return memtype_classify_arcs(type);
111 return memtype_classify_arc(type);
121 printk(
"ARCS MEMORY DESCRIPTOR dump:\n");
124 printk(
"[%d,%p]: base<%08lx> pages<%08lx> type<%s>\n",
138 type = prom_memtype_classify(p->
type);