Changeset 98000fb in mainline for kernel/genarch/src
- Timestamp:
- 2009-06-03T19:34:45Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 301ff30
- Parents:
- 69e68e3
- Location:
- kernel/genarch/src
- Files:
-
- 8 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); -
kernel/genarch/src/mm/asid.c
r69e68e3 r98000fb 66 66 #include <debug.h> 67 67 68 static count_t asids_allocated = 0;68 static size_t asids_allocated = 0; 69 69 70 70 /** Allocate free address space identifier. … … 121 121 * cache must be invalidated as well. 122 122 */ 123 as_invalidate_translation_cache(as, 0, ( count_t) -1);123 as_invalidate_translation_cache(as, 0, (size_t) -1); 124 124 125 125 /* -
kernel/genarch/src/mm/page_ht.c
r69e68e3 r98000fb 52 52 #include <align.h> 53 53 54 static index_t hash(unative_t key[]);55 static bool compare(unative_t key[], count_t keys, link_t *item);54 static size_t hash(unative_t key[]); 55 static bool compare(unative_t key[], size_t keys, link_t *item); 56 56 static void remove_callback(link_t *item); 57 57 … … 94 94 * @return Index into page hash table. 95 95 */ 96 index_t hash(unative_t key[])96 size_t hash(unative_t key[]) 97 97 { 98 98 as_t *as = (as_t *) key[KEY_AS]; 99 99 uintptr_t page = (uintptr_t) key[KEY_PAGE]; 100 index_t index;100 size_t index; 101 101 102 102 /* … … 125 125 * @return true on match, false otherwise. 126 126 */ 127 bool compare(unative_t key[], count_t keys, link_t *item)127 bool compare(unative_t key[], size_t keys, link_t *item) 128 128 { 129 129 pte_t *t; -
kernel/genarch/src/ofw/ebus.c
r69e68e3 r98000fb 50 50 ofw_tree_property_t *prop; 51 51 ofw_ebus_range_t *range; 52 count_t ranges;52 size_t ranges; 53 53 54 54 prop = ofw_tree_getprop(node, "ranges"); … … 92 92 93 93 ofw_ebus_intr_map_t *intr_map = prop->value; 94 count_t count = prop->size / sizeof(ofw_ebus_intr_map_t);94 size_t count = prop->size / sizeof(ofw_ebus_intr_map_t); 95 95 96 96 ASSERT(count); -
kernel/genarch/src/ofw/fhc.c
r69e68e3 r98000fb 47 47 ofw_tree_property_t *prop; 48 48 ofw_fhc_range_t *range; 49 count_t ranges;49 size_t ranges; 50 50 51 51 prop = ofw_tree_getprop(node, "ranges"); … … 89 89 ofw_tree_property_t *prop; 90 90 ofw_central_range_t *range; 91 count_t ranges;91 size_t ranges; 92 92 93 93 prop = ofw_tree_getprop(node, "ranges"); -
kernel/genarch/src/ofw/ofw_tree.c
r69e68e3 r98000fb 248 248 char buf[NAME_BUF_LEN + 1]; 249 249 ofw_tree_node_t *node = ofw_root; 250 index_t i, j; 250 size_t i; 251 size_t j; 251 252 252 253 if (path[0] != '/') -
kernel/genarch/src/ofw/pci.c
r69e68e3 r98000fb 55 55 ofw_tree_property_t *prop; 56 56 ofw_pci_range_t *range; 57 count_t ranges;57 size_t ranges; 58 58 59 59 prop = ofw_tree_getprop(node, "ranges"); … … 98 98 ofw_tree_property_t *prop; 99 99 ofw_pci_reg_t *assigned_address; 100 count_t assigned_addresses;100 size_t assigned_addresses; 101 101 102 102 prop = ofw_tree_getprop(node, "assigned-addresses"); -
kernel/genarch/src/ofw/sbus.c
r69e68e3 r98000fb 44 44 ofw_tree_property_t *prop; 45 45 ofw_sbus_range_t *range; 46 count_t ranges;46 size_t ranges; 47 47 48 48 /*
Note:
See TracChangeset
for help on using the changeset viewer.