Changeset da52547 in mainline for kernel/generic/src
- Timestamp:
- 2010-07-02T10:16:38Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- b5382d4f
- Parents:
- ad8f03d2
- Location:
- kernel/generic/src
- Files:
-
- 3 edited
-
console/console.c (modified) (1 diff)
-
debug/debug.c (modified) (3 diffs)
-
main/main.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/console/console.c
rad8f03d2 rda52547 294 294 stdout->op->write(stdout, ch, silent); 295 295 else { 296 /* The character is just in the kernel log */ 296 /* 297 * No standard output routine defined yet. 298 * The character is still stored in the kernel log 299 * for possible future output. 300 * 301 * The early_putchar() function is used to output 302 * the character for low-level debugging purposes. 303 * Note that the early_putc() function might be 304 * a no-op on certain hardware configurations. 305 * 306 */ 307 early_putchar(ch); 308 297 309 if (klog_stored < klog_len) 298 310 klog_stored++; -
kernel/generic/src/debug/debug.c
rad8f03d2 rda52547 36 36 */ 37 37 38 #ifdef CONFIG_ LOG38 #ifdef CONFIG_TRACE 39 39 40 40 #include <debug.h> … … 52 52 if (symtab_name_lookup((uintptr_t) call_site, &call_site_sym, 53 53 &call_site_off) == EOK) 54 printf("%s:%p->%s\n", call_site_sym, call_site_off, fn_sym); 54 printf("%s+%" PRIp "->%s\n", call_site_sym, call_site_off, 55 fn_sym); 55 56 else 56 57 printf("->%s\n", fn_sym); … … 66 67 if (symtab_name_lookup((uintptr_t) call_site, &call_site_sym, 67 68 &call_site_off) == EOK) 68 printf("%s:%p<-%s\n", call_site_sym, call_site_off, fn_sym); 69 printf("%s+%" PRIp "<-%s\n", call_site_sym, call_site_off, 70 fn_sym); 69 71 else 70 72 printf("<-%s\n", fn_sym); 71 73 } 72 74 73 #endif /* CONFIG_ LOG*/75 #endif /* CONFIG_TRACE */ 74 76 75 77 /** @} -
kernel/generic/src/main/main.c
rad8f03d2 rda52547 131 131 * 132 132 */ 133 void main_bsp(void)133 void __attribute__((no_instrument_function)) main_bsp(void) 134 134 { 135 135 config.cpu_count = 1; … … 183 183 version_print(); 184 184 185 LOG("\nconfig.base=% #" PRIp "config.kernel_size=%" PRIs186 "\nconfig.stack_base=% #" PRIp "config.stack_size=%" PRIs,185 LOG("\nconfig.base=%p config.kernel_size=%" PRIs 186 "\nconfig.stack_base=%p config.stack_size=%" PRIs, 187 187 config.base, config.kernel_size, config.stack_base, 188 188 config.stack_size); … … 241 241 size_t i; 242 242 for (i = 0; i < init.cnt; i++) 243 LOG("init[%" PRIs "].addr=% #" PRIp ", init[%" PRIs244 "].size=% #" PRIs, i, init.tasks[i].addr, i,243 LOG("init[%" PRIs "].addr=%p, init[%" PRIs 244 "].size=%" PRIs, i, init.tasks[i].addr, i, 245 245 init.tasks[i].size); 246 246 } else
Note:
See TracChangeset
for help on using the changeset viewer.
