Changeset e2ea4ab1 in mainline for kernel/generic/include
- Timestamp:
- 2010-07-02T14:22:35Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 09b859c
- Parents:
- 4d1be48 (diff), e3ee9b9 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - Location:
- kernel/generic/include
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/console/console.h
r4d1be48 re2ea4ab1 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
r4d1be48 re2ea4ab1 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
r4d1be48 re2ea4ab1 93 93 #define LOG(format, ...) \ 94 94 do { \ 95 printf("%s->%s() at %s:%u: " format "\n", symtab_fmt_name_lookup(CALLER), \ 96 __func__, __FILE__, __LINE__, ##__VA_ARGS__); \ 97 } while (0) 98 99 /** Extensive logging execute macro 100 * 101 * If CONFIG_LOG is set, the LOG_EXEC() macro 102 * will print an information about calling a given 103 * function and call it. 104 * 105 */ 106 #define LOG_EXEC(fnc) \ 107 do { \ 108 printf("%s->%s() at %s:%u: " #fnc "\n", symtab_fmt_name_lookup(CALLER), \ 109 __func__, __FILE__, __LINE__); \ 110 fnc; \ 95 printf("%s() from %s at %s:%u: " format "\n", __func__, \ 96 symtab_fmt_name_lookup(CALLER), __FILE__, __LINE__, \ 97 ##__VA_ARGS__); \ 111 98 } while (0) 112 99 … … 114 101 115 102 #define LOG(format, ...) 116 #define LOG_EXEC(fnc) fnc117 103 118 #endif /* CONFOG_LOG */ 104 #endif /* CONFIG_LOG */ 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 */ 119 112 120 113 #endif -
kernel/generic/include/macros.h
r4d1be48 re2ea4ab1 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/include/sort.h
r4d1be48 re2ea4ab1 38 38 #include <typedefs.h> 39 39 40 /* 41 * sorting routines 42 */ 43 extern void bubblesort(void * data, size_t n, size_t e_size, int (* cmp) (void * a, void * b)); 44 extern void qsort(void * data, size_t n, size_t e_size, int (* cmp) (void * a, void * b)); 40 typedef int (* sort_cmp_t)(void *, void *, void *); 45 41 46 /* 47 * default sorting comparators 48 */ 49 extern int int_cmp(void * a, void * b); 50 extern int uint32_t_cmp(void * a, void * b); 51 extern int uint16_t_cmp(void * a, void * b); 52 extern int uint8_t_cmp(void * a, void * b); 42 extern bool gsort(void *, size_t, size_t, sort_cmp_t, void *); 43 extern bool qsort(void *, size_t, size_t, sort_cmp_t, void *); 53 44 54 45 #endif
Note:
See TracChangeset
for help on using the changeset viewer.
