Changeset da52547 in mainline for kernel/generic
- Timestamp:
- 2010-07-02T10:16:38Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- b5382d4f
- Parents:
- ad8f03d2
- Location:
- kernel/generic
- Files:
-
- 7 edited
-
include/console/console.h (modified) (1 diff)
-
include/context.h (modified) (1 diff)
-
include/debug.h (modified) (2 diffs)
-
include/macros.h (modified) (1 diff)
-
src/console/console.c (modified) (1 diff)
-
src/debug/debug.c (modified) (3 diffs)
-
src/main/main.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/console/console.h
rad8f03d2 rda52547 56 56 extern outdev_t *stdout; 57 57 58 extern void early_putchar(wchar_t); 59 58 60 extern indev_t *stdin_wire(void); 59 61 extern void stdout_wire(outdev_t *outdev); -
kernel/generic/include/context.h
rad8f03d2 rda52547 87 87 * 88 88 * @param ctx Context structure. 89 * 89 90 */ 90 static inline void context_restore(context_t *ctx) 91 static inline void __attribute__((no_instrument_function)) 92 context_restore(context_t *ctx) 91 93 { 92 94 context_restore_arch(ctx); -
kernel/generic/include/debug.h
rad8f03d2 rda52547 98 98 } while (0) 99 99 100 extern void __cyg_profile_func_enter(void *, void *);101 extern void __cyg_profile_func_exit(void *, void *);102 103 100 #else /* CONFIG_LOG */ 104 101 … … 107 104 #endif /* CONFIG_LOG */ 108 105 106 #ifdef CONFIG_TRACE 107 108 extern void __cyg_profile_func_enter(void *, void *); 109 extern void __cyg_profile_func_exit(void *, void *); 110 111 #endif /* CONFIG_TRACE */ 112 109 113 #endif 110 114 -
kernel/generic/include/macros.h
rad8f03d2 rda52547 47 47 * @param sz2 Size of the second interval. 48 48 */ 49 static inline int overlaps(uintptr_t s1, size_t sz1, uintptr_t s2, size_t sz2) 49 static inline int __attribute__((no_instrument_function)) 50 overlaps(uintptr_t s1, size_t sz1, uintptr_t s2, size_t sz2) 50 51 { 51 52 uintptr_t e1 = s1 + sz1; -
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.
