kolibrios-gitea/programs/emulator/kwine/lib/kolibrisys.h
Rustem Gimadutdinov (rgimad) da6a4c5b74 kwine: added time function
git-svn-id: svn://kolibrios.org@7880 a494cfbc-eb01-0410-851d-a64ba20cac60
2020-05-06 22:35:48 +00:00

20 lines
367 B
C

#ifndef __KOS_32_SYS_H__
#define __KOS_32_SYS_H__
#include "stddef.h"
static inline uint32_t _ksys_get_date(void)
{
uint32_t val;
asm volatile ("int $0x40":"=a"(val):"a"(29));
return val;
}
static inline uint32_t _ksys_get_system_clock(void)
{
uint32_t val;
asm volatile ("int $0x40":"=a"(val):"a"(3));
return val;
}
#endif