Ejemplo n.º 1
0
void __init setup_arch(char **cmdline_p)
{
	cpu_probe();
	prom_init();

#ifdef CONFIG_EARLY_PRINTK
	{
		extern void setup_early_printk(void);

		setup_early_printk();
	}
#endif
	cpu_report();

#if defined(CONFIG_VT)
#if defined(CONFIG_VGA_CONSOLE)
	conswitchp = &vga_con;
#elif defined(CONFIG_DUMMY_CONSOLE)
	conswitchp = &dummy_con;
#endif
#endif

	arch_mem_init(cmdline_p);

	resource_init();
#ifdef CONFIG_SMP
	plat_smp_setup();
#endif
}
Ejemplo n.º 2
0
void mm_initialize(void)
{
  mmpool_t *pool;
  int nonempty_pools = 0;

  arch_mem_init();
  pt_ops.alloc_pagedir = allocate_pagedir;
  pt_ops.free_pagedir = free_pagedir;

  for_each_mmpool(pool) {
    if (mmpool_activate(pool))
      nonempty_pools++;
  }
  if (!nonempty_pools)
    panic("No one memory pool was activated!");

  for_each_mmpool(pool) {
    kprintf("[MM] Pages statistics of pool \"%s\":\n", pool->name);
    kprintf(" | %-8s %-8s %-8s |\n", "Total", "Free", "Reserved");
    kprintf(" | %-8d %-8d %-8d |\n", pool->num_pages,
            atomic_get(&pool->num_free_pages), pool->num_reserved_pages);
  }

  kprintf("[MM] All pages were successfully remapped.\n");
  __validate_mmpools_dbg();
}
Ejemplo n.º 3
0
void __init setup_arch(char **cmdline_p)
{
	/* the variable later on will be used in macros as well */
	is_nlm_xlp2xx_compat = is_nlm_xlp2xx();

	cpu_probe();
	prom_init();
#ifdef CONFIG_EARLY_PRINTK
	setup_early_printk();
#endif
	cpu_report();
	check_bugs_early();

#if defined(CONFIG_VT)
#if defined(CONFIG_VGA_CONSOLE)
	conswitchp = &vga_con;
#elif defined(CONFIG_DUMMY_CONSOLE)
	conswitchp = &dummy_con;
#endif
#endif

	arch_mem_init(cmdline_p);

	resource_init();
	plat_smp_setup();
}
Ejemplo n.º 4
0
void __init setup_arch(char **cmdline_p)
{
	cpu_probe();
	prom_init();
	cpu_report();

#if defined(CONFIG_VT)
#if defined(CONFIG_VGA_CONSOLE)
        conswitchp = &vga_con;
#elif defined(CONFIG_DUMMY_CONSOLE)
        conswitchp = &dummy_con;
#endif
#endif

	arch_mem_init(cmdline_p);

	resource_init();
#ifdef CONFIG_SMP
	plat_smp_setup();
#endif
}