Messages in this thread | | | Subject | Re: DOS --> Linux Question | Date | Fri, 02 Jul 1999 14:47:24 +0100 | From | David Woodhouse <> |
| |
coec@altu.net.au said: > ACL_ROM *rom; > unsigned long dpaddr=0xD000; /* address of dual port RAM */
> rom = (ACL_ROM *) MK_FP((dpaddr >> 4), 0);
> What would the equivialent be to the above statement in the Linux > universe.
unsigned long dpaddr=0xd0000; ACL_ROM *rom = (ACL_ROM *) ioremap(dpaddr, sizeof(ACL_ROM));
if (!rom) { /* this should never happen */ printk(KERN_WARNING "ioremap failed\n"); return -EIO; }
> current->timeout = jiffies + njiffies; > current->state = TASK_INTERRUPTIBLE; > schedule(); /* wait for njiffies/HZ sec */
> Only problem is current->timeout does not seem to exist in 2.3.x, what > is it replaced by, or better still, what is the recommended method in > 2.3?
current->state = TASK_INTERRUPTIBLE; schedule_timeout(njiffies);
---- ---- ---- David Woodhouse David.Woodhouse@mvhi.com Office: (+44) 1223 810302 Project Leader, Process Information Systems Mobile: (+44) 976 658355 Axiom (Cambridge) Ltd., Swaffham Bulbeck, Cambridge, CB5 0NA, UK. finger dwmw2@ferret.lmh.ox.ac.uk for PGP key.
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |