Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 6611 → Rev 6612

/contrib/C_Layer/INCLUDE/kolibri_debug.h
9,7 → 9,7
/* Write a printf() like function (variable argument list) for
writing to debug board */
 
inline void debug_board_write_byte(const char ch){
static inline void debug_board_write_byte(const char ch){
__asm__ __volatile__(
"int $0x40"
:
22,7 → 22,7
debug_board_write_byte(*str++);
}
 
void debug_board_printf(const char *format,...)
static inline void debug_board_printf(const char *format,...)
{
va_list ap;
char log_board[300];
33,4 → 33,13
debug_board_write_str(log_board);
}
 
__attribute__ ((noinline)) void trap(int n)
{
// nothing todo, just see n in debugger. use "bp trap" command
__asm__ __volatile__(
"nop"
:
:"a"(n));
}
 
#endif /* KOLIBRI_DEBUG_H */