Changeset 74b2f5bf in mainline


Ignore:
Timestamp:
2005-09-21T21:07:27Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
cf27a6cb
Parents:
aed4eca
Message:

During MADT parse, count only enabled CPUs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • arch/ia32/src/acpi/madt.c

    raed4eca r74b2f5bf  
    5252struct madt_io_apic *madt_io_apic_entries = NULL;
    5353
    54 __u32 madt_l_apic_entry_index = 0;
    55 __u32 madt_io_apic_entry_index = 0;
    56 int madt_l_apic_entry_cnt = 0;
    57 int madt_io_apic_entry_cnt = 0;
     54index_t madt_l_apic_entry_index = 0;
     55index_t madt_io_apic_entry_index = 0;
     56count_t madt_l_apic_entry_cnt = 0;
     57count_t madt_io_apic_entry_cnt = 0;
     58count_t cpu_count = 0;
    5859
    5960struct madt_apic_header * * madt_entries_index = NULL;
     
    177178       
    178179
    179         if (madt_l_apic_entry_cnt)
    180                 config.cpu_count = madt_l_apic_entry_cnt;
     180        if (cpu_count)
     181                config.cpu_count = cpu_count;
    181182}
    182183 
     
    192193                return;
    193194        }
    194                
     195       
     196        cpu_count++;   
    195197        apic_id_mask |= 1<<la->apic_id;
    196198}
Note: See TracChangeset for help on using the changeset viewer.