Changeset 98000fb in mainline for kernel/genarch/src


Ignore:
Timestamp:
2009-06-03T19:34:45Z (16 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
301ff30
Parents:
69e68e3
Message:

remove redundant index_t and count_t types (which were always quite ambiguous and not actually needed)

Location:
kernel/genarch/src
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • kernel/genarch/src/acpi/madt.c

    r69e68e3 r98000fb  
    6363struct madt_io_apic *madt_io_apic_entries = NULL;
    6464
    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;
     65size_t madt_l_apic_entry_index = 0;
     66size_t madt_io_apic_entry_index = 0;
     67size_t madt_l_apic_entry_cnt = 0;
     68size_t madt_io_apic_entry_cnt = 0;
     69size_t cpu_count = 0;
    7070
    7171struct madt_apic_header * * madt_entries_index = NULL;
     
    8787 * ACPI MADT Implementation of SMP configuration interface.
    8888 */
    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);
     89static size_t madt_cpu_count(void);
     90static bool madt_cpu_enabled(size_t i);
     91static bool madt_cpu_bootstrap(size_t i);
     92static uint8_t madt_cpu_apic_id(size_t i);
    9393static int madt_irq_to_pin(unsigned int irq);
    9494
     
    101101};
    102102
    103 count_t madt_cpu_count(void)
     103size_t madt_cpu_count(void)
    104104{
    105105        return madt_l_apic_entry_cnt;
    106106}
    107107
    108 bool madt_cpu_enabled(index_t i)
     108bool madt_cpu_enabled(size_t i)
    109109{
    110110        ASSERT(i < madt_l_apic_entry_cnt);
     
    113113}
    114114
    115 bool madt_cpu_bootstrap(index_t i)
     115bool madt_cpu_bootstrap(size_t i)
    116116{
    117117        ASSERT(i < madt_l_apic_entry_cnt);
     
    119119}
    120120
    121 uint8_t madt_cpu_apic_id(index_t i)
     121uint8_t madt_cpu_apic_id(size_t i)
    122122{
    123123        ASSERT(i < madt_l_apic_entry_cnt);
  • kernel/genarch/src/mm/asid.c

    r69e68e3 r98000fb  
    6666#include <debug.h>
    6767
    68 static count_t asids_allocated = 0;
     68static size_t asids_allocated = 0;
    6969
    7070/** Allocate free address space identifier.
     
    121121                 * cache must be invalidated as well.
    122122                 */
    123                 as_invalidate_translation_cache(as, 0, (count_t) -1);
     123                as_invalidate_translation_cache(as, 0, (size_t) -1);
    124124               
    125125                /*
  • kernel/genarch/src/mm/page_ht.c

    r69e68e3 r98000fb  
    5252#include <align.h>
    5353
    54 static index_t hash(unative_t key[]);
    55 static bool compare(unative_t key[], count_t keys, link_t *item);
     54static size_t hash(unative_t key[]);
     55static bool compare(unative_t key[], size_t keys, link_t *item);
    5656static void remove_callback(link_t *item);
    5757
     
    9494 * @return Index into page hash table.
    9595 */
    96 index_t hash(unative_t key[])
     96size_t hash(unative_t key[])
    9797{
    9898        as_t *as = (as_t *) key[KEY_AS];
    9999        uintptr_t page = (uintptr_t) key[KEY_PAGE];
    100         index_t index;
     100        size_t index;
    101101       
    102102        /*
     
    125125 * @return true on match, false otherwise.
    126126 */
    127 bool compare(unative_t key[], count_t keys, link_t *item)
     127bool compare(unative_t key[], size_t keys, link_t *item)
    128128{
    129129        pte_t *t;
  • kernel/genarch/src/ofw/ebus.c

    r69e68e3 r98000fb  
    5050        ofw_tree_property_t *prop;
    5151        ofw_ebus_range_t *range;
    52         count_t ranges;
     52        size_t ranges;
    5353
    5454        prop = ofw_tree_getprop(node, "ranges");
     
    9292
    9393        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);
    9595       
    9696        ASSERT(count);
  • kernel/genarch/src/ofw/fhc.c

    r69e68e3 r98000fb  
    4747        ofw_tree_property_t *prop;
    4848        ofw_fhc_range_t *range;
    49         count_t ranges;
     49        size_t ranges;
    5050
    5151        prop = ofw_tree_getprop(node, "ranges");
     
    8989        ofw_tree_property_t *prop;
    9090        ofw_central_range_t *range;
    91         count_t ranges;
     91        size_t ranges;
    9292       
    9393        prop = ofw_tree_getprop(node, "ranges");
  • kernel/genarch/src/ofw/ofw_tree.c

    r69e68e3 r98000fb  
    248248        char buf[NAME_BUF_LEN + 1];
    249249        ofw_tree_node_t *node = ofw_root;
    250         index_t i, j;
     250        size_t i;
     251        size_t j;
    251252       
    252253        if (path[0] != '/')
  • kernel/genarch/src/ofw/pci.c

    r69e68e3 r98000fb  
    5555        ofw_tree_property_t *prop;
    5656        ofw_pci_range_t *range;
    57         count_t ranges;
     57        size_t ranges;
    5858
    5959        prop = ofw_tree_getprop(node, "ranges");
     
    9898        ofw_tree_property_t *prop;
    9999        ofw_pci_reg_t *assigned_address;
    100         count_t assigned_addresses;
     100        size_t assigned_addresses;
    101101       
    102102        prop = ofw_tree_getprop(node, "assigned-addresses");
  • kernel/genarch/src/ofw/sbus.c

    r69e68e3 r98000fb  
    4444        ofw_tree_property_t *prop;
    4545        ofw_sbus_range_t *range;
    46         count_t ranges;
     46        size_t ranges;
    4747       
    4848        /*
Note: See TracChangeset for help on using the changeset viewer.