Changeset 98000fb in mainline for kernel/genarch/src/acpi/madt.c
- Timestamp:
- 2009-06-03T19:34:45Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 301ff30
- Parents:
- 69e68e3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/genarch/src/acpi/madt.c
r69e68e3 r98000fb 63 63 struct madt_io_apic *madt_io_apic_entries = NULL; 64 64 65 index_t madt_l_apic_entry_index = 0;66 index_t madt_io_apic_entry_index = 0;67 count_t madt_l_apic_entry_cnt = 0;68 count_t madt_io_apic_entry_cnt = 0;69 count_t cpu_count = 0;65 size_t madt_l_apic_entry_index = 0; 66 size_t madt_io_apic_entry_index = 0; 67 size_t madt_l_apic_entry_cnt = 0; 68 size_t madt_io_apic_entry_cnt = 0; 69 size_t cpu_count = 0; 70 70 71 71 struct madt_apic_header * * madt_entries_index = NULL; … … 87 87 * ACPI MADT Implementation of SMP configuration interface. 88 88 */ 89 static count_t madt_cpu_count(void);90 static bool madt_cpu_enabled( index_t i);91 static bool madt_cpu_bootstrap( index_t i);92 static uint8_t madt_cpu_apic_id( index_t i);89 static size_t madt_cpu_count(void); 90 static bool madt_cpu_enabled(size_t i); 91 static bool madt_cpu_bootstrap(size_t i); 92 static uint8_t madt_cpu_apic_id(size_t i); 93 93 static int madt_irq_to_pin(unsigned int irq); 94 94 … … 101 101 }; 102 102 103 count_t madt_cpu_count(void)103 size_t madt_cpu_count(void) 104 104 { 105 105 return madt_l_apic_entry_cnt; 106 106 } 107 107 108 bool madt_cpu_enabled( index_t i)108 bool madt_cpu_enabled(size_t i) 109 109 { 110 110 ASSERT(i < madt_l_apic_entry_cnt); … … 113 113 } 114 114 115 bool madt_cpu_bootstrap( index_t i)115 bool madt_cpu_bootstrap(size_t i) 116 116 { 117 117 ASSERT(i < madt_l_apic_entry_cnt); … … 119 119 } 120 120 121 uint8_t madt_cpu_apic_id( index_t i)121 uint8_t madt_cpu_apic_id(size_t i) 122 122 { 123 123 ASSERT(i < madt_l_apic_entry_cnt);
Note:
See TracChangeset
for help on using the changeset viewer.