~ubuntu-branches/ubuntu/trusty/linux-linaro-omap/trusty

« back to all changes in this revision

Viewing changes to arch/sparc/kernel/setup_32.c

  • Committer: Package Import Robot
  • Author(s): John Rigby, John Rigby
  • Date: 2011-09-26 10:44:23 UTC
  • Revision ID: package-import@ubuntu.com-20110926104423-57i0gl3v99b3lkfg
Tags: 3.0.0-1007.9
[ John Rigby ]

Enable crypto modules and remove crypto-modules from
exclude-module files
LP: #826021

Show diffs side-by-side

added added

removed removed

Lines of Context:
82
82
                             "nop\n\t" : : "r" (&trapbase));
83
83
 
84
84
        prom_printf("PROM SYNC COMMAND...\n");
85
 
        show_free_areas();
 
85
        show_free_areas(0);
86
86
        if(current->pid != 0) {
87
87
                local_irq_enable();
88
88
                sys_sync();
103
103
/* Exported for mm/init.c:paging_init. */
104
104
unsigned long cmdline_memory_size __initdata = 0;
105
105
 
 
106
/* which CPU booted us (0xff = not set) */
 
107
unsigned char boot_cpu_id = 0xff; /* 0xff will make it into DATA section... */
 
108
unsigned char boot_cpu_id4; /* boot_cpu_id << 2 */
 
109
 
106
110
static void
107
111
prom_console_write(struct console *con, const char *s, unsigned n)
108
112
{
109
113
        prom_write(s, n);
110
114
}
111
115
 
112
 
static struct console prom_debug_console = {
113
 
        .name =         "debug",
 
116
static struct console prom_early_console = {
 
117
        .name =         "earlyprom",
114
118
        .write =        prom_console_write,
115
 
        .flags =        CON_PRINTBUFFER,
 
119
        .flags =        CON_PRINTBUFFER | CON_BOOT,
116
120
        .index =        -1,
117
121
};
118
122
 
133
137
                prom_halt();
134
138
                break;
135
139
        case 'p':
136
 
                /* Use PROM debug console. */
137
 
                register_console(&prom_debug_console);
 
140
                /* Just ignore, this behavior is now the default.  */
138
141
                break;
139
142
        default:
140
143
                printk("Unknown boot switch (-%c)\n", c);
215
218
        strcpy(boot_command_line, *cmdline_p);
216
219
        parse_early_param();
217
220
 
 
221
        boot_flags_init(*cmdline_p);
 
222
 
 
223
        register_console(&prom_early_console);
 
224
 
218
225
        /* Set sparc_cpu_model */
219
226
        sparc_cpu_model = sun_unknown;
220
227
        if (!strcmp(&cputypval[0], "sun4 "))
260
267
        default:
261
268
                printk("UNKNOWN!\n");
262
269
                break;
263
 
        };
 
270
        }
264
271
 
265
272
#ifdef CONFIG_DUMMY_CONSOLE
266
273
        conswitchp = &dummy_con;
267
274
#endif
268
 
        boot_flags_init(*cmdline_p);
269
275
 
270
276
        idprom_init();
271
277
        if (ARCH_SUN4C)
311
317
        smp_setup_cpu_possible_map();
312
318
}
313
319
 
314
 
static int ncpus_probed;
315
 
 
316
 
static int show_cpuinfo(struct seq_file *m, void *__unused)
317
 
{
318
 
        seq_printf(m,
319
 
                   "cpu\t\t: %s\n"
320
 
                   "fpu\t\t: %s\n"
321
 
                   "promlib\t\t: Version %d Revision %d\n"
322
 
                   "prom\t\t: %d.%d\n"
323
 
                   "type\t\t: %s\n"
324
 
                   "ncpus probed\t: %d\n"
325
 
                   "ncpus active\t: %d\n"
326
 
#ifndef CONFIG_SMP
327
 
                   "CPU0Bogo\t: %lu.%02lu\n"
328
 
                   "CPU0ClkTck\t: %ld\n"
329
 
#endif
330
 
                   ,
331
 
                   sparc_cpu_type,
332
 
                   sparc_fpu_type ,
333
 
                   romvec->pv_romvers,
334
 
                   prom_rev,
335
 
                   romvec->pv_printrev >> 16,
336
 
                   romvec->pv_printrev & 0xffff,
337
 
                   &cputypval[0],
338
 
                   ncpus_probed,
339
 
                   num_online_cpus()
340
 
#ifndef CONFIG_SMP
341
 
                   , cpu_data(0).udelay_val/(500000/HZ),
342
 
                   (cpu_data(0).udelay_val/(5000/HZ)) % 100,
343
 
                   cpu_data(0).clock_tick
344
 
#endif
345
 
                );
346
 
 
347
 
#ifdef CONFIG_SMP
348
 
        smp_bogo(m);
349
 
#endif
350
 
        mmu_info(m);
351
 
#ifdef CONFIG_SMP
352
 
        smp_info(m);
353
 
#endif
354
 
        return 0;
355
 
}
356
 
 
357
 
static void *c_start(struct seq_file *m, loff_t *pos)
358
 
{
359
 
        /* The pointer we are returning is arbitrary,
360
 
         * it just has to be non-NULL and not IS_ERR
361
 
         * in the success case.
362
 
         */
363
 
        return *pos == 0 ? &c_start : NULL;
364
 
}
365
 
 
366
 
static void *c_next(struct seq_file *m, void *v, loff_t *pos)
367
 
{
368
 
        ++*pos;
369
 
        return c_start(m, pos);
370
 
}
371
 
 
372
 
static void c_stop(struct seq_file *m, void *v)
373
 
{
374
 
}
375
 
 
376
 
const struct seq_operations cpuinfo_op = {
377
 
        .start =c_start,
378
 
        .next = c_next,
379
 
        .stop = c_stop,
380
 
        .show = show_cpuinfo,
381
 
};
382
 
 
383
320
extern int stop_a_enabled;
384
321
 
385
322
void sun_do_break(void)