Changeset 43114c5 in mainline for arch/ia32/src/smp


Ignore:
Timestamp:
2005-04-09T18:22:53Z (21 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8262010
Parents:
e6ba9a3f
Message:

Introduce macros CPU, THREAD, TASK and use them to replace the→cpu, the→thread, the→task.
Later on, this will make it possible to reference *current* cpu, thread and/or task without the aid from virtual memory.

File:
1 edited

Legend:

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

    re6ba9a3f r43114c5  
    115115void apic_spurious(__u8 n, __u32 stack[])
    116116{
    117         printf("cpu%d: APIC spurious interrupt\n", the->cpu->id);
     117        printf("cpu%d: APIC spurious interrupt\n", CPU->id);
    118118}
    119119
     
    143143
    144144/*
    145  * Send all CPUs excluding the->cpu IPI vector.
     145 * Send all CPUs excluding CPU IPI vector.
    146146 */
    147147int l_apic_broadcast_custom_ipi(__u8 vector)
     
    233233        l_apic[TPR] &= TPRClear;
    234234
    235         if (the->cpu->arch.family >= 6)
     235        if (CPU->arch.family >= 6)
    236236                enable_l_apic_in_msr();
    237237       
     
    271271        int i, lint;
    272272
    273         printf("LVT on cpu%d, LAPIC ID: %d\n", the->cpu->id, (l_apic[L_APIC_ID] >> 24)&0xf);
     273        printf("LVT on cpu%d, LAPIC ID: %d\n", CPU->id, (l_apic[L_APIC_ID] >> 24)&0xf);
    274274
    275275        printf("LVT_Tm: ");
     
    305305         * This register is supported only on P6 and higher.
    306306         */
    307         if (the->cpu->family > 5) {
     307        if (CPU->family > 5) {
    308308                printf("LVT_PCINT: ");
    309309                if (l_apic[LVT_PCINT] & (1<<16)) printf("masked"); else printf("not masked"); putchar(',');
Note: See TracChangeset for help on using the changeset viewer.