Subversion Repositories Kolibri OS

Rev

Blame | Last modification | View Log | Download | RSS feed

  1. #ifndef __KOS_32_SYS_H__
  2. #define __KOS_32_SYS_H__
  3.  
  4. #include "stddef.h"
  5.  
  6. static inline uint32_t _ksys_get_date(void)
  7. {
  8.     uint32_t val;
  9.     asm volatile ("int $0x40":"=a"(val):"a"(29));
  10.     return val;
  11. }
  12.  
  13. static inline uint32_t _ksys_get_system_clock(void)
  14. {
  15.         uint32_t val;
  16.     asm volatile ("int $0x40":"=a"(val):"a"(3));
  17.     return val;
  18. }
  19.  
  20. #endif