Move pause() define to <sys/systm.h>

This commit is contained in:
Sebastian Huber
2013-10-24 11:37:44 +02:00
parent c8a0f76156
commit 53441c049a
2 changed files with 4 additions and 1 deletions

View File

@@ -348,6 +348,10 @@ int msleep_spin(void *chan, struct mtx *mtx, const char *wmesg, int timo)
#define msleep_spin(chan, mtx, wmesg, timo) \
msleep((chan), (mtx), 0, (wmesg), (timo))
#endif /* __rtems__ */
#ifdef __rtems__
#include <unistd.h>
#define pause _bsd_pause
#endif /* __rtems__ */
int pause(const char *wmesg, int timo);
#define tsleep(chan, pri, wmesg, timo) \
_sleep((chan), NULL, (pri), (wmesg), (timo))

View File

@@ -317,7 +317,6 @@
#define ohci_resume _bsd_ohci_resume
#define ohci_suspend _bsd_ohci_suspend
#define panic _bsd_panic
#define pause _bsd_pause
#define psignal _bsd_psignal
#define root_bus_configure _bsd_root_bus_configure
#define scsi_inquiry _bsd_scsi_inquiry