Rev 501 | Rev 532 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 501 | Rev 512 | ||
---|---|---|---|
Line 87... | Line 87... | ||
87 | */ |
87 | */ |
88 | static count_t get_cpu_count(void); |
88 | static count_t get_cpu_count(void); |
89 | static bool is_cpu_enabled(index_t i); |
89 | static bool is_cpu_enabled(index_t i); |
90 | static bool is_bsp(index_t i); |
90 | static bool is_bsp(index_t i); |
91 | static __u8 get_cpu_apic_id(index_t i); |
91 | static __u8 get_cpu_apic_id(index_t i); |
- | 92 | static int mps_irq_to_pin(int irq); |
|
92 | 93 | ||
93 | struct smp_config_operations mps_config_operations = { |
94 | struct smp_config_operations mps_config_operations = { |
94 | .cpu_count = get_cpu_count, |
95 | .cpu_count = get_cpu_count, |
95 | .cpu_enabled = is_cpu_enabled, |
96 | .cpu_enabled = is_cpu_enabled, |
96 | .cpu_bootstrap = is_bsp, |
97 | .cpu_bootstrap = is_bsp, |
97 | .cpu_apic_id = get_cpu_apic_id |
98 | .cpu_apic_id = get_cpu_apic_id, |
- | 99 | .irq_to_pin = mps_irq_to_pin |
|
98 | }; |
100 | }; |
99 | 101 | ||
100 | count_t get_cpu_count(void) |
102 | count_t get_cpu_count(void) |
101 | { |
103 | { |
102 | return processor_entry_cnt; |
104 | return processor_entry_cnt; |