Changes in kernel/generic/src/cpu/cpu.c [b169619:4760793] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/cpu/cpu.c
rb169619 r4760793 81 81 panic("Cannot allocate CPU stack."); 82 82 83 cpus[i]. stack = (uint8_t *) PA2KA(stack_phys);83 cpus[i].local.stack = (uint8_t *) PA2KA(stack_phys); 84 84 cpus[i].id = i; 85 85 … … 104 104 CPU->tlb_active = true; 105 105 106 CPU ->idle = false;107 CPU ->last_cycle = get_cycle();106 CPU_LOCAL->idle = false; 107 CPU_LOCAL->last_cycle = get_cycle(); 108 108 CPU->idle_cycles = ATOMIC_TIME_INITIALIZER(); 109 109 CPU->busy_cycles = ATOMIC_TIME_INITIALIZER();
Note:
See TracChangeset
for help on using the changeset viewer.