Changeset 583 for trunk/kernel/kern/printk.h
- Timestamp:
- Nov 1, 2018, 12:10:42 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/kern/printk.h
r564 r583 98 98 * See assert macro documentation for information about printed information. 99 99 *********************************************************************************/ 100 void panic( const char * file_name, 101 const char * function_name, 100 void panic( const char * function_name, 102 101 uint32_t line, 103 102 cycle_t cycle, … … 110 109 * Actually used to debug the kernel. 111 110 * 112 * Information printed by assert: 113 * Current running thread: 114 * - thread descriptior adress 115 * - thread id (trdid) 116 * 117 * Current Process: 118 * - Process descriptor adress 119 * - Process id (pid) 120 * 121 * Current Core: 122 * - local cluster position (local_cxy) 123 * - local core id (lid) 124 * 125 * File name (__FILE__) and were the assert is invoked. 126 * And the assert message. 127 * 128 * Cycle: before the assert branchment. 129 * Note: cycle may change due to compiler optimisation. 130 * 131 * Exemple: 132 * assert( my_ptr != NULL, "my_ptr should not be NULL") 111 * Extra information printed by assert: 112 * - Current thread, process, and core 113 * - Function name / line number in file / cycle 133 114 ********************************************************************************** 134 115 * @ condition : condition that must be true. … … 141 122 if ( ( expr ) == false ) \ 142 123 { \ 143 panic( __FILE__, __FUNCTION__, \ 144 __line_at_expansion, __assert_cycle, \ 124 panic( __FUNCTION__, \ 125 __line_at_expansion, \ 126 __assert_cycle, \ 145 127 ( format ), ##__VA_ARGS__ ); \ 146 128 } \
Note: See TracChangeset
for help on using the changeset viewer.