~ubuntu-branches/ubuntu/lucid/linux-rt/lucid

« back to all changes in this revision

Viewing changes to arch/blackfin/kernel/early_printk.c

  • Committer: Bazaar Package Importer
  • Author(s): Luke Yelavich
  • Date: 2009-08-05 23:00:52 UTC
  • Revision ID: james.westby@ubuntu.com-20090805230052-7xedvqcyk9dnnxb2
Tags: 2.6.31-1.1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
178
178
 
179
179
asmlinkage void __init init_early_exception_vectors(void)
180
180
{
 
181
        u32 evt;
181
182
        SSYNC();
182
183
 
183
184
        /* cannot program in software:
184
185
         * evt0 - emulation (jtag)
185
186
         * evt1 - reset
186
187
         */
187
 
        bfin_write_EVT2(early_trap);
188
 
        bfin_write_EVT3(early_trap);
189
 
        bfin_write_EVT5(early_trap);
190
 
        bfin_write_EVT6(early_trap);
191
 
        bfin_write_EVT7(early_trap);
192
 
        bfin_write_EVT8(early_trap);
193
 
        bfin_write_EVT9(early_trap);
194
 
        bfin_write_EVT10(early_trap);
195
 
        bfin_write_EVT11(early_trap);
196
 
        bfin_write_EVT12(early_trap);
197
 
        bfin_write_EVT13(early_trap);
198
 
        bfin_write_EVT14(early_trap);
199
 
        bfin_write_EVT15(early_trap);
 
188
        for (evt = EVT2; evt <= EVT15; evt += 4)
 
189
                bfin_write32(evt, early_trap);
200
190
        CSYNC();
201
191
 
202
192
        /* Set all the return from interrupt, exception, NMI to a known place
212
202
asmlinkage void __init early_trap_c(struct pt_regs *fp, void *retaddr)
213
203
{
214
204
        /* This can happen before the uart is initialized, so initialize
215
 
         * the UART now
 
205
         * the UART now (but only if we are running on the processor we think
 
206
         * we are compiled for - otherwise we write to MMRs that don't exist,
 
207
         * and cause other problems. Nothing comes out the UART, but it does
 
208
         * end up in the __buf_log.
216
209
         */
217
 
        if (likely(early_console == NULL))
 
210
        if (likely(early_console == NULL) && CPUID == bfin_cpuid())
218
211
                setup_early_printk(DEFAULT_EARLY_PORT);
219
212
 
 
213
        printk(KERN_EMERG "Early panic\n");
220
214
        dump_bfin_mem(fp);
221
215
        show_regs(fp);
222
216
        dump_bfin_trace_buffer();