Changeset 43114c5 in mainline for src/cpu/cpu.c


Ignore:
Timestamp:
2005-04-09T18:22:53Z (20 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
  • src/cpu/cpu.c

    re6ba9a3f r43114c5  
    2828
    2929#include <cpu.h>
     30#include <arch.h>
    3031#include <arch/cpu.h>
    3132#include <mm/heap.h>
     
    8586        #endif /* __SMP__ */
    8687       
    87         the->cpu = &cpus[config.cpu_active-1]; 
     88        CPU = &cpus[config.cpu_active-1];       
    8889        cpu_identify();
    8990        cpu_arch_init();
Note: See TracChangeset for help on using the changeset viewer.