Changeset 408 for trunk/kernel/kern/printk.h
- Timestamp:
- Dec 5, 2017, 4:20:07 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/kern/printk.h
r407 r408 90 90 91 91 /********************************************************************************** 92 * This function displays a "PANIC" message and forces the calling core in93 * sleeping mode if a Boolean condition is false.94 * Th ese functions areactually used to debug the kernel...92 * This function displays a formated message on kernel TXT0 terminal, 93 * and forces the calling core in sleeping mode if a Boolean condition is false. 94 * This function is actually used to debug the kernel... 95 95 ********************************************************************************** 96 96 * @ condition : condition that must be true. … … 101 101 const char * function_name, 102 102 char * format , ... ); 103 104 /********************************************************************************** 105 * This function displays a non-formated message on kernel TXT0 terminal. 106 * This function is actually used to debug the assembly level kernel functions. 107 ********************************************************************************** 108 * @ string : non-formatted string. 109 *********************************************************************************/ 110 void puts( char * string ); 111 112 /********************************************************************************** 113 * This function displays a 32 bits value in hexadecimal on kernel TXT0 terminal. 114 * This function is actually used to debug the assembly level kernel functions. 115 ********************************************************************************** 116 * @ val : 32 bits unsigned value. 117 *********************************************************************************/ 118 void putx( uint32_t val ); 119 120 /********************************************************************************** 121 * This function displays a 64 bits value in hexadecimal on kernel TXT0 terminal. 122 * This function is actually used to debug the assembly level kernel functions. 123 ********************************************************************************** 124 * @ val : 64 bits unsigned value. 125 *********************************************************************************/ 126 void putl( uint64_t val ); 127 103 128 104 129 #define panic(fmt, ...) _panic("\n[PANIC] %s(): " fmt "\n", __func__, ##__VA_ARGS__)
Note: See TracChangeset
for help on using the changeset viewer.