Rev 693 | Rev 756 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 693 | Rev 755 | ||
---|---|---|---|
Line 42... | Line 42... | ||
42 | #include <debug.h> |
42 | #include <debug.h> |
43 | #include <arch/asm.h> |
43 | #include <arch/asm.h> |
44 | #include <mm/frame.h> |
44 | #include <mm/frame.h> |
45 | #include <mm/page.h> |
45 | #include <mm/page.h> |
46 | #include <mm/heap.h> |
46 | #include <mm/heap.h> |
47 | #include <mm/asid.h> |
47 | #include <mm/as.h> |
48 | #include <print.h> |
48 | #include <print.h> |
49 | #include <memstr.h> |
49 | #include <memstr.h> |
50 | #include <arch/i8259.h> |
50 | #include <arch/i8259.h> |
51 | 51 | ||
52 | #ifdef CONFIG_SMP |
52 | #ifdef CONFIG_SMP |
Line 63... | Line 63... | ||
63 | mps_init(); |
63 | mps_init(); |
64 | ops = &mps_config_operations; |
64 | ops = &mps_config_operations; |
65 | } |
65 | } |
66 | 66 | ||
67 | if (config.cpu_count > 1) { |
67 | if (config.cpu_count > 1) { |
68 | page_mapping_insert((__address)l_apic, ASID_KERNEL, (__address)l_apic, |
68 | page_mapping_insert(AS_KERNEL, (__address) l_apic, (__address) l_apic, |
69 | PAGE_NOT_CACHEABLE, 0); |
69 | PAGE_NOT_CACHEABLE, 0); |
70 | page_mapping_insert((__address) io_apic, ASID_KERNEL, |
70 | page_mapping_insert(AS_KERNEL, (__address) io_apic, (__address) io_apic, |
71 | (__address) io_apic, |
- | |
72 | PAGE_NOT_CACHEABLE, 0); |
71 | PAGE_NOT_CACHEABLE, 0); |
73 | } |
72 | } |
74 | 73 | ||
75 | /* |
74 | /* |
76 | * Must be initialized outside the kmp thread, since it is waited |
75 | * Must be initialized outside the kmp thread, since it is waited |