Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/amd64/src/amd64.c

    r38b0ae2 ra35b458  
    9292        multiboot_info_parse(signature, (multiboot_info_t *) info);
    9393        multiboot2_info_parse(signature, (multiboot2_info_t *) info);
    94        
     94
    9595#ifdef CONFIG_SMP
    9696        /* Copy AP bootstrap routines below 1 MB. */
     
    106106        /* Enable FPU */
    107107        cpu_setup_fpu();
    108        
     108
    109109        /* Initialize segmentation */
    110110        pm_init();
    111        
     111
    112112        /* Disable I/O on nonprivileged levels, clear the nested-thread flag */
    113113        write_rflags(read_rflags() & ~(RFLAGS_IOPL | RFLAGS_NT));
    114114        /* Disable alignment check */
    115115        write_cr0(read_cr0() & ~CR0_AM);
    116        
     116
    117117        if (config.cpu_active == 1) {
    118118                interrupt_init();
    119119                bios_init();
    120                
     120
    121121                /* PIC */
    122122                i8259_init();
     
    132132                /* Initialize IRQ routing */
    133133                irq_init(IRQ_COUNT, IRQ_COUNT);
    134                
     134
    135135                /* hard clock */
    136136                i8254_init();
    137                
     137
    138138#if (defined(CONFIG_FB) || defined(CONFIG_EGA))
    139139                bool bfb = false;
    140140#endif
    141                
     141
    142142#ifdef CONFIG_FB
    143143                bfb = bfb_init();
    144144#endif
    145                
     145
    146146#ifdef CONFIG_EGA
    147147                if (!bfb) {
     
    151151                }
    152152#endif
    153                
     153
    154154                /* Merge all memory zones to 1 big zone */
    155155                zone_merge_all();
    156156        }
    157        
     157
    158158        /* Setup fast SYSCALL/SYSRET */
    159159        syscall_setup_cpu();
     
    235235        }
    236236#endif
    237        
     237
    238238        if (irqs_info != NULL)
    239239                sysinfo_set_item_val(irqs_info, NULL, true);
Note: See TracChangeset for help on using the changeset viewer.