Changeset 7d365305 in mainline for arch/ia32/src/smp/mps.c


Ignore:
Timestamp:
2005-07-20T11:26:40Z (20 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
59532eb
Parents:
0970f43
Message:

Initialize kmp_completion_wq during configuration via ACPI MADT.
Move some generic SMP configuration code from mps.c to smp.c.

File:
1 edited

Legend:

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

    r0970f43 r7d365305  
    3838#include <arch/types.h>
    3939#include <typedefs.h>
    40 #include <mm/page.h>
    4140#include <cpu.h>
    4241#include <arch/asm.h>
     
    203202                config.cpu_count = configure_via_default(fs->config_type);
    204203
    205         if (config.cpu_count > 1) {
    206                 map_page_to_frame((__address) l_apic, (__address) l_apic, PAGE_NOT_CACHEABLE, 0);
    207         }               
    208        
    209        
    210         /*
    211          * Must be initialized outside the kmp thread, since it is waited
    212          * on before the kmp thread is created.
    213          */
    214         waitq_initialize(&kmp_completion_wq);
    215204        return;
    216205}
     
    344333        }
    345334       
    346         map_page_to_frame((__address) ioa->io_apic, (__address) ioa->io_apic, PAGE_NOT_CACHEABLE, 0);
    347        
    348335        io_apic = ioa->io_apic;
    349336}
Note: See TracChangeset for help on using the changeset viewer.