mirror of
https://github.com/hermitcore/libhermit.git
synced 2025-03-09 00:00:03 +01:00
add system call to deliver the current system tick
This commit is contained in:
parent
a33c86edf3
commit
620e1babfe
3 changed files with 9 additions and 2 deletions
|
@ -85,6 +85,7 @@ extern "C" {
|
|||
#define __NR_setprio 40
|
||||
#define __NR_clone 41
|
||||
#define __NR_sem_cancelablewait 42
|
||||
#define __NR_get_ticks 43
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
|
@ -384,6 +384,11 @@ static off_t sys_lseek(int fd, off_t offset, int whence)
|
|||
return off;
|
||||
}
|
||||
|
||||
static size_t sys_get_ticks(void)
|
||||
{
|
||||
return get_clock_tick();
|
||||
}
|
||||
|
||||
static int default_handler(void)
|
||||
{
|
||||
#if 0
|
||||
|
@ -440,5 +445,6 @@ size_t syscall_table[] = {
|
|||
(size_t) sys_getprio, /* __NR_getprio */
|
||||
(size_t) default_handler, /* __NR_setprio */
|
||||
(size_t) sys_clone, /* __NR_clone */
|
||||
(size_t) sys_sem_timedwait /* __NR_sem_cancelablewait */
|
||||
(size_t) sys_sem_timedwait, /* __NR_sem_cancelablewait */
|
||||
(size_t) sys_get_ticks /* __NR_get_ticks */
|
||||
};
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 2aff438d76d11c2d8e9efc274d639f8e0fef455b
|
||||
Subproject commit 53835aebf4adb9b9582a3fa0665d5340568208c8
|
Loading…
Add table
Reference in a new issue