47 DBGC ( &
timer,
"TIMER currticks() called before initialisation "
48 "from %p\n", __builtin_return_address ( 0 ) );
65 DBGC ( &
timer,
"TIMER udelay() called before initialisation "
66 "from %p\n", __builtin_return_address ( 0 ) );
83 DBGC ( &
timer,
"TIMER mdelay() called before initialisation "
84 "from %p\n", __builtin_return_address ( 0 ) );
101 int ( * interrupted ) (
void ) ) {
105 for ( ; secs ; secs-- ) {
108 if ( interrupted && interrupted() )
134unsigned int sleep (
unsigned int secs ) {
163 DBGC ( &
timer,
"TIMER could not initialise %s: %s\n",
168 DBGC ( &
timer,
"TIMER found no working timers!\n" );
#define NULL
NULL pointer (VOID *)
struct arbelprm_rc_send_wqe rc
int getchar(void)
Read a single character from any console.
int iskey(void)
Check for available input on any console.
#define INIT_EARLY
Early initialisation.
uint32_t start
Starting offset.
#define FILE_LICENCE(_licence)
Declare a particular licence as applying to a file.
#define REQUIRE_OBJECT(object)
Require an object.
#define FILE_SECBOOT(_status)
Declare a file's UEFI Secure Boot permission status.
#define REQUIRING_SYMBOL(symbol)
Specify the file's requiring symbol.
void cpu_nap(void)
Sleep with interrupts enabled until next CPU interrupt.
#define TIMERS
Timer table.
#define TICKS_PER_SEC
Number of ticks per second.
#define __init_fn(init_order)
Declare an initialisation functon.
void step(void)
Single-step a single process.
char * strerror(int errno)
Retrieve string representation of error number.
An initialisation function.
void(* udelay)(unsigned long usecs)
Delay for a fixed number of microseconds.
int(* probe)(void)
Probe timer.
unsigned long(* currticks)(void)
Get current system time in ticks.
#define for_each_table_entry(pointer, table)
Iterate through all entries within a linker table.
static unsigned int sleep_interruptible(unsigned int secs, int(*interrupted)(void))
Sleep (possibly interruptibly) for a fixed number of seconds.
static int keypress_interrupted(void)
Check if sleep has been interrupted by keypress.
unsigned long currticks(void)
Get current system time in ticks.
void sleep_fixed(unsigned int secs)
Sleep (uninterruptibly) for a fixed number of seconds.
static void timer_probe(void)
Find a working timer.
unsigned int sleep(unsigned int secs)
Sleep (interruptibly) for a fixed number of seconds.
void mdelay(unsigned long msecs)
Delay for a fixed number of milliseconds.
void udelay(unsigned long usecs)
Delay for a fixed number of microseconds.