12 #include <linux/string.h>
19 #include <asm/setup.h>
20 #include <asm/sections.h>
25 #include <linux/pci.h>
29 #include <asm/cacheflush.h>
30 #include <asm/entry.h>
31 #include <asm/cpuinfo.h>
34 #include <asm/pgtable.h>
56 unflatten_device_tree();
64 #ifdef CONFIG_EARLY_PRINTK
71 #if defined(CONFIG_SELFMOD_INTC) || defined(CONFIG_SELFMOD_TIMER)
76 #if defined(CONFIG_XILINX_CONSOLE)
78 #elif defined(CONFIG_DUMMY_CONSOLE)
84 #ifdef CONFIG_MTD_UCLINUX
87 inline unsigned get_romfs_len(
unsigned *
addr)
89 #ifdef CONFIG_ROMFS_FS
90 if (
memcmp(&addr[0],
"-rom1fs-", 8) == 0)
105 unsigned int fdt,
unsigned int msr,
unsigned int tlb0,
115 #ifdef CONFIG_MTD_UCLINUX
117 unsigned int romfs_base;
118 char *old_klimit =
klimit;
121 romfs_size =
PAGE_ALIGN(get_romfs_len((
unsigned *)romfs_base));
124 romfs_size =
PAGE_ALIGN(get_romfs_len((
unsigned *)romfs_base));
128 if (romfs_size > 0) {
143 #ifdef CONFIG_EARLY_PRINTK
149 kernel_tlb = tlb0 + tlb1;
153 printk(
"Ramdisk addr 0x%08x, ", ram);
155 printk(
"FDT at 0x%08x\n", fdt);
157 printk(
"Compiled-in FDT at 0x%08x\n",
160 #ifdef CONFIG_MTD_UCLINUX
161 printk(
"Found romfs @ 0x%08x (0x%08x)\n",
162 romfs_base, romfs_size);
163 printk(
"#### klimit %p ####\n", old_klimit);
166 printk(
"Moved 0x%08x bytes from 0x%08x to 0x%08x\n",
167 romfs_size, romfs_base, (
unsigned)&
__bss_stop);
172 #if CONFIG_XILINX_MICROBLAZE0_USE_MSR_INSTR
174 printk(
"!!!Your kernel has setup MSR instruction but "
175 "CPU don't have it %x\n", msr);
178 printk(
"!!!Your kernel not setup MSR instruction but "
179 "CPU have it %x\n", msr);
185 #if !CONFIG_MANUAL_RESET_VECTOR
188 dst = (
unsigned long *) (offset *
sizeof(
u32));
197 #ifdef CONFIG_DEBUG_FS
198 struct dentry *of_debugfs_root;
200 static int microblaze_debugfs_init(
void)
204 return of_debugfs_root ==
NULL;
209 static int __init debugfs_tlb(
void)
213 if (!of_debugfs_root)
239 .notifier_call = dflt_bus_notify,
243 static int __init setup_bus_notifier(
void)