Changeset a35b458 in mainline for kernel/arch/amd64/src/amd64.c
- Timestamp:
- 2018-03-02T20:10:49Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f1380b7
- Parents:
- 3061bc1
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:38:31)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-03-02 20:10:49)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/amd64/src/amd64.c
r3061bc1 ra35b458 92 92 multiboot_info_parse(signature, (multiboot_info_t *) info); 93 93 multiboot2_info_parse(signature, (multiboot2_info_t *) info); 94 94 95 95 #ifdef CONFIG_SMP 96 96 /* Copy AP bootstrap routines below 1 MB. */ … … 106 106 /* Enable FPU */ 107 107 cpu_setup_fpu(); 108 108 109 109 /* Initialize segmentation */ 110 110 pm_init(); 111 111 112 112 /* Disable I/O on nonprivileged levels, clear the nested-thread flag */ 113 113 write_rflags(read_rflags() & ~(RFLAGS_IOPL | RFLAGS_NT)); 114 114 /* Disable alignment check */ 115 115 write_cr0(read_cr0() & ~CR0_AM); 116 116 117 117 if (config.cpu_active == 1) { 118 118 interrupt_init(); 119 119 bios_init(); 120 120 121 121 /* PIC */ 122 122 i8259_init(); … … 132 132 /* Initialize IRQ routing */ 133 133 irq_init(IRQ_COUNT, IRQ_COUNT); 134 134 135 135 /* hard clock */ 136 136 i8254_init(); 137 137 138 138 #if (defined(CONFIG_FB) || defined(CONFIG_EGA)) 139 139 bool bfb = false; 140 140 #endif 141 141 142 142 #ifdef CONFIG_FB 143 143 bfb = bfb_init(); 144 144 #endif 145 145 146 146 #ifdef CONFIG_EGA 147 147 if (!bfb) { … … 151 151 } 152 152 #endif 153 153 154 154 /* Merge all memory zones to 1 big zone */ 155 155 zone_merge_all(); 156 156 } 157 157 158 158 /* Setup fast SYSCALL/SYSRET */ 159 159 syscall_setup_cpu(); … … 235 235 } 236 236 #endif 237 237 238 238 if (irqs_info != NULL) 239 239 sysinfo_set_item_val(irqs_info, NULL, true);
Note:
See TracChangeset
for help on using the changeset viewer.