int ques, reps; /* number of questions and replies */
uint8_t timeout;
const uint8_t *timeout_ptr = TimeoutTable;
- uint32_t oldtime;
+ jiffies_t oldtime;
uint32_t srv;
uint32_t *srv_ptr;
struct dnshdr *hd1 = (struct dnshdr *)DNSSendBuf;
const uint8_t *timeout_ptr;
uint8_t timeout;
uint16_t buffersize;
- uint32_t oldtime;
+ jiffies_t oldtime;
void *data = NULL;
static __lowmem struct s_PXENV_UDP_READ udp_read;
struct pxe_pvt_inode *socket = PVT(inode);
udp_read.d_port = socket->tftp_localport;
err = pxe_call(PXENV_UDP_READ, &udp_read);
if (err) {
- uint32_t now = jiffies();
+ jiffies_t now = jiffies();
if (now-oldtime >= timeout) {
oldtime = now;
int buffersize;
int rrq_len;
const uint8_t *timeout_ptr;
- uint32_t timeout;
- uint32_t oldtime;
+ jiffies_t timeout;
+ jiffies_t oldtime;
uint16_t tid;
uint16_t opcode;
uint16_t blk_num;
udp_read.d_port = tid;
err = pxe_call(PXENV_UDP_READ, &udp_read);
if (err || udp_read.status) {
- uint32_t now = jiffies();
+ jiffies_t now = jiffies();
if (now - oldtime >= timeout)
goto sendreq;
} else {
#define TICKS_TO_IDLE 4 /* Also in idle.inc */
-extern uint32_t _IdleTimer;
+extern jiffies_t _IdleTimer;
extern uint16_t NoHalt;
int (*idle_hook_func)(void);
/*
* Basic timer function...
*/
-extern volatile uint32_t __jiffies, __ms_timer;
-static inline uint32_t jiffies(void)
+typedef uint32_t jiffies_t;
+extern volatile jiffies_t __jiffies, __ms_timer;
+static inline jiffies_t jiffies(void)
{
return __jiffies;
}
-static inline uint32_t ms_timer(void)
+typedef uint32_t mstime_t;
+typedef int32_t mstimediff_t;
+static inline mstime_t ms_timer(void)
{
return __ms_timer;
}