Changeset 1433ecda in mainline for kernel/generic/src/cpu/cpu.c
- 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
- File:
-
- 1 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;
Note:
See TracChangeset
for help on using the changeset viewer.