Changeset d0780b4c in mainline for arch/ia32/src/smp/apic.c


Ignore:
Timestamp:
2006-01-29T19:55:08Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
df09142f
Parents:
457d18a
Message:

ia32 SMP updates.
Update info about supported version of Bochs (bump the counter to 2.2.6).
Add Task Priority Register type and initialize this register to a known state.

File:
1 edited

Legend:

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

    r457d18a rd0780b4c  
    4545 * Advanced Programmable Interrupt Controller for SMP systems.
    4646 * Tested on:
    47  *      Bochs 2.0.2 - Bochs 2.2.5 with 2-8 CPUs
     47 *      Bochs 2.0.2 - Bochs 2.2.6 with 2-8 CPUs
    4848 *      Simics 2.0.28 - Simics 2.2.19 2-15 CPUs
    4949 *      VMware Workstation 5.5 with 2 CPUs
     
    309309        lvt_error_t error;
    310310        lvt_lint_t lint;
     311        tpr_t tpr;
    311312        svr_t svr;
    312313        icr_t icr;
     
    331332        lint.masked = true;
    332333        l_apic[LVT_LINT1] = lint.value;
     334
     335        /* Task Priority Register initialization. */
     336        tpr.value = l_apic[TPR];
     337        tpr.pri_sc = 0;
     338        tpr.pri = 0;
     339        l_apic[TPR] = tpr.value;
    333340       
    334341        /* Spurious-Interrupt Vector Register initialization. */
     
    336343        svr.vector = VECTOR_APIC_SPUR;
    337344        svr.lapic_enabled = true;
     345        svr.focus_checking = true;
    338346        l_apic[SVR] = svr.value;
    339 
    340         l_apic[TPR] &= TPRClear;
    341347
    342348        if (CPU->arch.family >= 6)
Note: See TracChangeset for help on using the changeset viewer.