setup.c (34db18abd376b2075c760c38f0b861aed379415d) setup.c (0b9b0200b0922c29dc251b99700f96dade92214a)
1/*
2 * Copyright (C) 2007-2009 Michal Simek <monstr@monstr.eu>
3 * Copyright (C) 2007-2009 PetaLogix
4 * Copyright (C) 2006 Atmark Techno, Inc.
5 *
6 * This file is subject to the terms and conditions of the GNU General Public
7 * License. See the file "COPYING" in the main directory of this archive
8 * for more details.

--- 81 unchanged lines hidden (view full) ---

90#endif
91 return 0;
92}
93#endif /* CONFIG_MTD_UCLINUX_EBSS */
94
95void __init machine_early_init(const char *cmdline, unsigned int ram,
96 unsigned int fdt, unsigned int msr)
97{
1/*
2 * Copyright (C) 2007-2009 Michal Simek <monstr@monstr.eu>
3 * Copyright (C) 2007-2009 PetaLogix
4 * Copyright (C) 2006 Atmark Techno, Inc.
5 *
6 * This file is subject to the terms and conditions of the GNU General Public
7 * License. See the file "COPYING" in the main directory of this archive
8 * for more details.

--- 81 unchanged lines hidden (view full) ---

90#endif
91 return 0;
92}
93#endif /* CONFIG_MTD_UCLINUX_EBSS */
94
95void __init machine_early_init(const char *cmdline, unsigned int ram,
96 unsigned int fdt, unsigned int msr)
97{
98 unsigned long *src, *dst = (unsigned long *)0x0;
98 unsigned long *src, *dst;
99 unsigned int offset = 0;
99
100 /* If CONFIG_MTD_UCLINUX is defined, assume ROMFS is at the
101 * end of kernel. There are two position which we want to check.
102 * The first is __init_end and the second __bss_start.
103 */
104#ifdef CONFIG_MTD_UCLINUX
105 int romfs_size;
106 unsigned int romfs_base;

--- 56 unchanged lines hidden (view full) ---

163 eprintk("!!!Your kernel has setup MSR instruction but "
164 "CPU don't have it %x\n", msr);
165#else
166 if (!msr)
167 eprintk("!!!Your kernel not setup MSR instruction but "
168 "CPU have it %x\n", msr);
169#endif
170
100
101 /* If CONFIG_MTD_UCLINUX is defined, assume ROMFS is at the
102 * end of kernel. There are two position which we want to check.
103 * The first is __init_end and the second __bss_start.
104 */
105#ifdef CONFIG_MTD_UCLINUX
106 int romfs_size;
107 unsigned int romfs_base;

--- 56 unchanged lines hidden (view full) ---

164 eprintk("!!!Your kernel has setup MSR instruction but "
165 "CPU don't have it %x\n", msr);
166#else
167 if (!msr)
168 eprintk("!!!Your kernel not setup MSR instruction but "
169 "CPU have it %x\n", msr);
170#endif
171
171 for (src = __ivt_start; src < __ivt_end; src++, dst++)
172 /* Do not copy reset vectors. offset = 0x2 means skip the first
173 * two instructions. dst is pointer to MB vectors which are placed
174 * in block ram. If you want to copy reset vector setup offset to 0x0 */
175#if !CONFIG_MANUAL_RESET_VECTOR
176 offset = 0x2;
177#endif
178 dst = (unsigned long *) (offset * sizeof(u32));
179 for (src = __ivt_start + offset; src < __ivt_end; src++, dst++)
172 *dst = *src;
173
174 /* Initialize global data */
175 per_cpu(KM, 0) = 0x1; /* We start in kernel mode */
176 per_cpu(CURRENT_SAVE, 0) = (unsigned long)current;
177}
178
179#ifdef CONFIG_DEBUG_FS

--- 38 unchanged lines hidden ---
180 *dst = *src;
181
182 /* Initialize global data */
183 per_cpu(KM, 0) = 0x1; /* We start in kernel mode */
184 per_cpu(CURRENT_SAVE, 0) = (unsigned long)current;
185}
186
187#ifdef CONFIG_DEBUG_FS

--- 38 unchanged lines hidden ---