Subversion Repositories Kolibri OS

Rev

Rev 6391 | Go to most recent revision | Blame | Last modification | View Log | RSS feed

  1. #ifndef KOLIBRI_DEBUG_H
  2. #define KOLIBRI_DEBUG_H
  3.  
  4. /* Write a printf() like function (variable argument list) for
  5.    writing to debug board */
  6.  
  7. inline void debug_board_write_byte(const char ch){
  8.     __asm__ __volatile__(
  9.     "int $0x40"
  10.     :
  11.     :"a"(63), "b"(1), "c"(ch));
  12. }
  13.  
  14. //added noninline because incofortabre stepping in in debugger
  15. void __attribute__ ((noinline)) debug_board_write_str(const char* str){
  16.   while(*str)
  17.     debug_board_write_byte(*str++);
  18. }
  19.  
  20.  
  21. #endif /* KOLIBRI_DEBUG_H */
  22.