Пример #1
0
void
base_cpu_setup(void)
{
	ofw_cacheclean_init();
	base_trap_init();
	ofw_configisa();
	base_irq_init();
}
Пример #2
0
void base_cpu_init(void)
{
	/* Detect the current processor.  */
	cpuid(&base_cpuid);

	/* Initialize the processor tables.  */
	base_trap_init();
	base_irq_init();
	base_gdt_init();
	base_tss_init();
}
Пример #3
0
void base_cpu_init(void)
{
        unsigned int efl, cr0;

	/* Initialize the processor tables.  */
	base_trap_init();
	base_irq_init();
	base_gdt_init();
	base_tss_init();


        /*
         * Setting these flags sets up alignment checking of
         * all memory accesses.
         */
	efl = get_eflags();
        efl |= EFL_AC;
        set_eflags( efl );

        cr0 = get_cr0();
        cr0 |= CR0_AM;
        set_cr0( cr0 );
}