Changeset 0132630 in mainline for generic/src/cpu/cpu.c
- Timestamp:
- 2006-01-03T21:55:31Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- b524c5e0
- Parents:
- 93e90c7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
generic/src/cpu/cpu.c
r93e90c7 r0132630 39 39 #include <memstr.h> 40 40 #include <list.h> 41 #include <print.h> 41 42 42 43 cpu_t *cpus; … … 89 90 cpu_arch_init(); 90 91 } 92 93 /** List all processors. */ 94 void cpu_list(void) 95 { 96 int i; 97 98 for (i = 0; i < config.cpu_count; i++) { 99 if (cpus[i].active) 100 cpu_print_report(&cpus[i]); 101 else 102 printf("cpu%d: not active\n", i); 103 } 104 }
Note:
See TracChangeset
for help on using the changeset viewer.