mirror of
https://github.com/ipxe/ipxe
synced 2025-12-29 02:52:36 +03:00
Introduce the new timer subsystem.
Timer subsystem initialization code in core/timer.c Split the BIOS and RTDSC timer drivers from i386_timer.c Split arch/i386/firmware/pcbios/bios.c into the RTSDC timer driver and arch/i386/core/nap.c Split the headers properly: include/unistd.h - delay functions to be used by the gPXE core and drivers. include/gpxe/timer.h - the fimer subsystem interface to be used by the timer drivers and currticks() to be used by the code gPXE subsystems. include/latch.h - removed include/timer.h - scheduled for removal. Some driver are using currticks, which is only for core subsystems. Signed-off-by: Alexey Zaytsev <alexey.zaytsev@gmail.com>
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
#include <stddef.h>
|
||||
#include <stdarg.h>
|
||||
|
||||
extern unsigned int sleep ( unsigned int seconds );
|
||||
unsigned int sleep ( unsigned int seconds );
|
||||
extern int execv ( const char *command, char * const argv[] );
|
||||
|
||||
/**
|
||||
@@ -22,4 +22,10 @@ extern int execv ( const char *command, char * const argv[] );
|
||||
rc; \
|
||||
} )
|
||||
|
||||
void udelay(unsigned int usecs);
|
||||
void mdelay(unsigned int msecs);
|
||||
|
||||
#define usleep(x) udelay(x)
|
||||
|
||||
|
||||
#endif /* _UNISTD_H */
|
||||
|
||||
Reference in New Issue
Block a user