Changeset 1433ecda in mainline for kernel/generic/src/cpu
- Timestamp:
- 2018-04-04T15:42:37Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2c4e1cc
- Parents:
- 47b2d7e3
- Location:
- kernel/generic/src/cpu
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/cpu/cpu.c
r47b2d7e3 r1433ecda 59 59 * 60 60 */ 61 void cpu_init(void) { 61 void cpu_init(void) 62 { 62 63 #ifdef CONFIG_SMP 63 64 if (config.cpu_active == 1) { 64 65 #endif /* CONFIG_SMP */ 65 66 66 cpus = (cpu_t *) malloc(sizeof(cpu_t) * 67 cpus = (cpu_t *) malloc(sizeof(cpu_t) *config.cpu_count, 67 68 FRAME_ATOMIC); 68 69 if (!cpus) … … 70 71 71 72 /* Initialize everything */ 72 memsetb(cpus, sizeof(cpu_t) * 73 memsetb(cpus, sizeof(cpu_t) *config.cpu_count, 0); 73 74 74 75 size_t i; -
kernel/generic/src/cpu/cpu_mask.c
r47b2d7e3 r1433ecda 57 57 58 58 for (size_t active_word = 0; 59 60 59 (active_word + 1) * word_bit_cnt <= cpu_cnt; 60 ++active_word) { 61 61 /* Set all bits in the cell/word. */ 62 62 cpus->mask[active_word] = -1;
Note:
See TracChangeset
for help on using the changeset viewer.