Changeset e3ce39b in mainline for kernel/arch/ia32/src/smp/smp.c


Ignore:
Timestamp:
2010-05-31T19:08:26Z (14 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
6e2bf29
Parents:
a820bf7
Message:

Lock the page tables before working with them on ia32.

File:
1 edited

Legend:

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

    ra820bf7 re3ce39b  
    8383                panic("Cannot allocate address for io_apic.");
    8484
    85         if (config.cpu_count > 1) {             
     85        if (config.cpu_count > 1) {
     86                page_table_lock(AS_KERNEL, true);
    8687                page_mapping_insert(AS_KERNEL, l_apic_address,
    8788                    (uintptr_t) l_apic, PAGE_NOT_CACHEABLE | PAGE_WRITE);
    8889                page_mapping_insert(AS_KERNEL, io_apic_address,
    8990                    (uintptr_t) io_apic, PAGE_NOT_CACHEABLE | PAGE_WRITE);
     91                page_table_unlock(AS_KERNEL, true);
    9092                                 
    9193                l_apic = (uint32_t *) l_apic_address;
Note: See TracChangeset for help on using the changeset viewer.