17 #include <linux/errno.h>
21 #include <linux/screen_info.h>
23 #include <linux/kernel.h>
25 #if defined(CONFIG_VGA_CONSOLE) || defined(CONFIG_DUMMY_CONSOLE)
30 # include <linux/timex.h>
37 #include <asm/bootparam.h>
38 #include <asm/pgtable.h>
39 #include <asm/processor.h>
40 #include <asm/timex.h>
43 #include <asm/setup.h>
44 #include <asm/param.h>
46 #include <platform/hardware.h>
48 #if defined(CONFIG_VGA_CONSOLE) || defined(CONFIG_DUMMY_CONSOLE)
49 struct screen_info screen_info = { 0, 24, 0, 0, 0, 80, 0, 0, 0, 24, 1, 16};
52 #ifdef CONFIG_BLK_DEV_FD
53 extern struct fd_ops no_fd_ops;
60 #ifdef CONFIG_BLK_DEV_INITRD
63 int initrd_is_mapped = 0;
74 #ifdef CONFIG_CMDLINE_BOOL
83 static inline void init_mmu(
void) { }
102 #define __tagtable(tag, fn) static tagtable_t __tagtable_##fn \
103 __attribute__((used, section(".taglist"))) = { tag, fn }
116 "Ignoring memory bank 0x%08lx size %ldKB\n",
117 (
unsigned long)mi->
start,
118 (
unsigned long)mi->
end - (
unsigned long)mi->
start);
131 #ifdef CONFIG_BLK_DEV_INITRD
158 extern tagtable_t __tagtable_begin, __tagtable_end;
173 for (t = &__tagtable_begin; t < &__tagtable_end; t++) {
174 if (tag->
id == t->
tag) {
179 if (t == &__tagtable_end)
181 "0x%08x\n", tag->
id);
182 tag = (
bp_tag_t*)((
unsigned long)(tag + 1) + tag->
size);
196 #ifdef CONFIG_CMDLINE_BOOL
203 parse_bootparam(bp_start);
240 extern int mem_reserve(
unsigned long,
unsigned long,
int);
249 #ifdef CONFIG_BLK_DEV_INITRD
262 __pa(&_WindowVectors_text_end), 0);
265 __pa(&_DebugInterruptVector_text_end), 0);
268 __pa(&_KernelExceptionVector_text_end), 0);
271 __pa(&_UserExceptionVector_text_end), 0);
274 __pa(&_DoubleExceptionVector_text_end), 0);
285 # if defined(CONFIG_VGA_CONSOLE)
287 # elif defined(CONFIG_DUMMY_CONSOLE)
313 #ifdef CONFIG_PROC_FS
324 "vendor_id\t: Tensilica\n"
329 "cpu MHz\t\t: %lu.%02lu\n"
330 "bogomips\t: %lu.%02lu\n",
333 CCOUNT_PER_JIFFY/(1000000/
HZ),
334 (CCOUNT_PER_JIFFY/(10000/
HZ)) % 100,
402 "debug level\t: %d\n",
411 "icache ways\t: %d\n"
412 "icache size\t: %d\n"
418 "dcache line size: %d\n"
419 "dcache ways\t: %d\n"
420 "dcache size\t: %d\n"
445 return (
void *) ((*pos == 0) ? (
void *)1 :
NULL);
449 c_next(
struct seq_file *f,
void *
v, loff_t *pos)