Rev 1702 | Rev 1766 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 1702 | Rev 1760 | ||
|---|---|---|---|
| Line 71... | Line 71... | ||
| 71 | if (config.cpu_count == 1) { |
71 | if (config.cpu_count == 1) { |
| 72 | mps_init(); |
72 | mps_init(); |
| 73 | ops = &mps_config_operations; |
73 | ops = &mps_config_operations; |
| 74 | } |
74 | } |
| 75 | 75 | ||
| 76 | l_apic_address = PA2KA(PFN2ADDR(frame_alloc_rc(ONE_FRAME, FRAME_ATOMIC | FRAME_KA, &status))); |
76 | l_apic_address = (__address) frame_alloc_rc(ONE_FRAME, FRAME_ATOMIC | FRAME_KA, &status); |
| 77 | if (status != FRAME_OK) |
77 | if (status != FRAME_OK) |
| 78 | panic("cannot allocate address for l_apic\n"); |
78 | panic("cannot allocate address for l_apic\n"); |
| 79 | 79 | ||
| 80 | io_apic_address = PA2KA(PFN2ADDR(frame_alloc_rc(ONE_FRAME, FRAME_ATOMIC | FRAME_KA, &status))); |
80 | io_apic_address = (__address) frame_alloc_rc(ONE_FRAME, FRAME_ATOMIC | FRAME_KA, &status); |
| 81 | if (status != FRAME_OK) |
81 | if (status != FRAME_OK) |
| 82 | panic("cannot allocate address for io_apic\n"); |
82 | panic("cannot allocate address for io_apic\n"); |
| 83 | 83 | ||
| 84 | if (config.cpu_count > 1) { |
84 | if (config.cpu_count > 1) { |
| 85 | page_mapping_insert(AS_KERNEL, l_apic_address, (__address) l_apic, |
85 | page_mapping_insert(AS_KERNEL, l_apic_address, (__address) l_apic, |