Skip to content

Commit

Permalink
Merge pull request #1 from CarlWachter/path2rs
Browse files Browse the repository at this point in the history
Updated kernel interface to match recent changes
  • Loading branch information
mkroening authored May 22, 2024
2 parents bcafd6f + c274379 commit a7352b4
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 a7352b4

Please sign in to comment.