Changeset 98000fb in mainline for kernel/arch/ia32/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/arch/ia32/src
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/ia32/src/ddi/ddi.c

    r69e68e3 r98000fb  
    5858int ddi_iospace_enable_arch(task_t *task, uintptr_t ioaddr, size_t size)
    5959{
    60         count_t bits;
     60        size_t bits;
    6161
    6262        bits = ioaddr + size;
     
    100100         * Enable the range and we are done.
    101101         */
    102         bitmap_clear_range(&task->arch.iomap, (index_t) ioaddr, (count_t) size);
     102        bitmap_clear_range(&task->arch.iomap, (size_t) ioaddr, (size_t) size);
    103103
    104104        /*
     
    119119void io_perm_bitmap_install(void)
    120120{
    121         count_t bits;
     121        size_t bits;
    122122        ptr_16_32_t cpugdtr;
    123123        descriptor_t *gdt_p;
    124         count_t ver;
     124        size_t ver;
    125125
    126126        /* First, copy the I/O Permission Bitmap. */
  • kernel/arch/ia32/src/interrupt.c

    r69e68e3 r98000fb  
    102102{
    103103        if (TASK) {
    104                 count_t ver;
     104                size_t ver;
    105105               
    106106                spinlock_lock(&TASK->lock);
  • kernel/arch/ia32/src/mm/frame.c

    r69e68e3 r98000fb  
    7171#endif
    7272                pfn_t pfn;
    73                 count_t count;
     73                size_t count;
    7474               
    7575                if (e820table[i].type == MEMMAP_MEMORY_AVAILABLE) {
  • kernel/arch/ia32/src/mm/tlb.c

    r69e68e3 r98000fb  
    6060 * @param cnt Number of entries to invalidate.
    6161 */
    62 void tlb_invalidate_pages(asid_t asid __attribute__((unused)), uintptr_t page, count_t cnt)
     62void tlb_invalidate_pages(asid_t asid __attribute__((unused)), uintptr_t page, size_t cnt)
    6363{
    6464        unsigned int i;
  • kernel/arch/ia32/src/smp/mps.c

    r69e68e3 r98000fb  
    8787 * Implementation of IA-32 SMP configuration interface.
    8888 */
    89 static count_t get_cpu_count(void);
    90 static bool is_cpu_enabled(index_t i);
    91 static bool is_bsp(index_t i);
    92 static uint8_t get_cpu_apic_id(index_t i);
     89static size_t get_cpu_count(void);
     90static bool is_cpu_enabled(size_t i);
     91static bool is_bsp(size_t i);
     92static uint8_t get_cpu_apic_id(size_t i);
    9393static int mps_irq_to_pin(unsigned int irq);
    9494
     
    101101};
    102102
    103 count_t get_cpu_count(void)
     103size_t get_cpu_count(void)
    104104{
    105105        return processor_entry_cnt;
    106106}
    107107
    108 bool is_cpu_enabled(index_t i)
     108bool is_cpu_enabled(size_t i)
    109109{
    110110        ASSERT(i < processor_entry_cnt);
     
    112112}
    113113
    114 bool is_bsp(index_t i)
     114bool is_bsp(size_t i)
    115115{
    116116        ASSERT(i < processor_entry_cnt);
     
    118118}
    119119
    120 uint8_t get_cpu_apic_id(index_t i)
     120uint8_t get_cpu_apic_id(size_t i)
    121121{
    122122        ASSERT(i < processor_entry_cnt);
Note: See TracChangeset for help on using the changeset viewer.