Changeset aa9551d in mainline


Ignore:
Timestamp:
2005-04-13T14:07:20Z (20 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2968fe29
Parents:
34b20f5d
Message:

Smarter definition of CPU macro.

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • include/arch.h

    r34b20f5d raa9551d  
    3636#include <arch/cpu.h>
    3737
    38 #define CPU             (cpu_private_data[CPU_ID_ARCH].cpu)
     38#define CPU             (&cpus[CPU_ID_ARCH])
    3939#define THREAD          (cpu_private_data[CPU_ID_ARCH].thread)
    4040#define TASK            (cpu_private_data[CPU_ID_ARCH].task)
  • include/cpu.h

    r34b20f5d raa9551d  
    7474 */
    7575struct cpu_private_data {
    76         cpu_t *cpu;
    7776        thread_t *thread;
    7877        task_t *task;
  • src/cpu/cpu.c

    r34b20f5d raa9551d  
    7575                                list_initialize(&cpus[i].rq[j].rq_head);
    7676                        }
    77                        
    78                         cpu_private_data[i].cpu = &cpus[i];
    7977                }
    8078               
Note: See TracChangeset for help on using the changeset viewer.