Skip to content

Commit

Permalink
Updated kernel interface to match recent changes
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlWachter committed May 22, 2024
1 parent bcafd6f commit c274379
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion platform/hermit/pte_osal.c
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ pte_osResult pte_osSemaphoreCancellablePend(pte_osSemaphoreHandle semHandle, uns

if (pTimeout)
msec = *pTimeout;
ret = sys_sem_cancelablewait(semHandle, msec);
ret = sys_sem_timedwait(semHandle, msec);

if (ret == -ETIME)
return PTE_OS_TIMEOUT;
Expand Down
2 changes: 1 addition & 1 deletion platform/hermit/syscall.h
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ int sys_sem_post(HermitSemaphore* sem);
int sys_sem_trywait(HermitSemaphore* sem);
int sys_sem_timedwait(HermitSemaphore *sem, unsigned int ms);
#define sys_sem_wait(sem) sys_sem_timedwait(sem, 0)
int sys_sem_cancelablewait(HermitSemaphore* sem, unsigned int ms);
int sys_sem_timedwait(HermitSemaphore* sem, unsigned int ms);
int sys_spinlock_init(HermitSpinlock** lock);
int sys_spinlock_destroy(HermitSpinlock* lock);
int sys_spinlock_lock(HermitSpinlock* lock);
Expand Down

0 comments on commit c274379

Please sign in to comment.