Changes in kernel/generic/src/cpu/cpu.c [cd3b380:9d58539] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/cpu/cpu.c
rcd3b380 r9d58539 73 73 size_t i; 74 74 for (i = 0; i < config.cpu_count; i++) { 75 uintptr_t stack_phys = frame_alloc(STACK_FRAMES, 76 FRAME_LOWMEM | FRAME_ATOMIC, STACK_SIZE - 1); 77 if (!stack_phys) 78 panic("Cannot allocate CPU stack."); 79 80 cpus[i].stack = (uint8_t *) PA2KA(stack_phys); 75 cpus[i].stack = (uint8_t *) frame_alloc(STACK_FRAMES, 76 FRAME_LOWMEM | FRAME_KA | FRAME_ATOMIC); 81 77 cpus[i].id = i; 82 78 83 79 irq_spinlock_initialize(&cpus[i].lock, "cpus[].lock"); 84 80 85 for (unsigned int j = 0; j < RQ_COUNT; j++) { 81 unsigned int j; 82 for (j = 0; j < RQ_COUNT; j++) { 86 83 irq_spinlock_initialize(&cpus[i].rq[j].lock, "cpus[].rq[].lock"); 87 84 list_initialize(&cpus[i].rq[j].rq);
Note:
See TracChangeset
for help on using the changeset viewer.