11 #include <linux/kernel.h>
12 #include <linux/stddef.h>
14 #include <linux/sched.h>
23 #include <linux/timex.h>
24 #include <linux/screen_info.h>
29 #include <asm/processor.h>
30 #include <asm/pgtable.h>
32 #include <asm/mmu_context.h>
34 #include <asm/setup.h>
35 #include <asm/sections.h>
48 #ifdef CONFIG_BLK_DEV_RAM
54 #if defined(CONFIG_VGA_CONSOLE)
57 .orig_video_cols = 80,
59 .orig_video_ega_bx = 0,
60 .orig_video_isVGA = 1,
61 .orig_video_points = 8
69 static struct resource data_resource = {
70 .name =
"Kernel data",
76 static struct resource code_resource = {
77 .name =
"Kernel code",
89 static __inline__ void parse_mem_cmdline(
char ** cmdline_p)
105 if (c ==
' ' && !
memcmp(from,
"mem=", 4)) {
106 if (to != command_line)
132 #ifndef CONFIG_DISCONTIGMEM
135 unsigned long start_pfn,
max_low_pfn, bootmap_size;
144 CONFIG_MEMORY_START>>
PAGE_SHIFT, max_low_pfn);
150 unsigned long curr_pfn;
151 unsigned long last_pfn;
164 if (last_pfn > max_low_pfn)
167 pages = last_pfn - curr_pfn;
180 - CONFIG_MEMORY_START,
192 #ifdef CONFIG_MEMHOLE
197 #ifdef CONFIG_BLK_DEV_INITRD
204 printk(
"initrd:start[%08lx],size[%08lx]\n",
207 printk(
"initrd extends beyond end of memory "
208 "(0x%08lx > 0x%08lx)\ndisabling initrd\n",
231 #ifdef CONFIG_BLK_DEV_RAM
241 #if defined(CONFIG_VGA_CONSOLE)
243 #elif defined(CONFIG_DUMMY_CONSOLE)
248 #ifdef CONFIG_DISCONTIGMEM
264 parse_mem_cmdline(cmdline_p);
273 static int __init topology_init(
void)
285 #ifdef CONFIG_PROC_FS
301 #if defined(CONFIG_CHIP_VDEC2)
303 "cache size\t: Unknown\n");
304 #elif defined(CONFIG_CHIP_M32700)
306 "cache size\t: I-8KB/D-8KB\n");
307 #elif defined(CONFIG_CHIP_M32102)
309 "cache size\t: I-8KB\n");
310 #elif defined(CONFIG_CHIP_OPSP)
312 "cache size\t: I-8KB/D-8KB\n");
313 #elif defined(CONFIG_CHIP_MP)
315 "cache size\t: I-xxKB/D-xxKB\n");
316 #elif defined(CONFIG_CHIP_M32104)
318 "cache size\t: I-8KB/D-8KB\n");
325 #if defined(CONFIG_PLAT_MAPPI)
326 seq_printf(m,
"Machine\t\t: Mappi Evaluation board\n");
327 #elif defined(CONFIG_PLAT_MAPPI2)
328 seq_printf(m,
"Machine\t\t: Mappi-II Evaluation board\n");
329 #elif defined(CONFIG_PLAT_MAPPI3)
330 seq_printf(m,
"Machine\t\t: Mappi-III Evaluation board\n");
331 #elif defined(CONFIG_PLAT_M32700UT)
332 seq_printf(m,
"Machine\t\t: M32700UT Evaluation board\n");
333 #elif defined(CONFIG_PLAT_OPSPUT)
334 seq_printf(m,
"Machine\t\t: OPSPUT Evaluation board\n");
335 #elif defined(CONFIG_PLAT_USRV)
337 #elif defined(CONFIG_PLAT_OAKS32R)
339 #elif defined(CONFIG_PLAT_M32104UT)
340 seq_printf(m,
"Machine\t\t: M3T-M32104UT uT Engine board\n");
345 #define PRINT_CLOCK(name, value) \
346 seq_printf(m, name " clock\t: %d.%02dMHz\n", \
347 ((value) / 1000000), ((value) % 1000000)/10000)
362 static void *c_next(
struct seq_file *m,
void *v, loff_t *
pos)
368 static void c_stop(
struct seq_file *m,
void *v)
388 #if defined(CONFIG_CHIP_VDEC2) || defined(CONFIG_CHIP_XNUX2) \
389 || defined(CONFIG_CHIP_M32700) || defined(CONFIG_CHIP_M32102) \
390 || defined(CONFIG_CHIP_OPSP) || defined(CONFIG_CHIP_M32104)