Hi! On Wed, Apr 12, 2000 at 10:49:41PM +0200, Julian Reschke wrote: > I thought that the scheduler is doing that anyway? AFAIR not. > However, you would still need to get into supervisor mode to access it, > right? No, as far as I know (and tested with TOS 4.04 and MagiC 6.1), act_pd is accessible in user mode. And as it's a constant pointer, it would be enough to read and save it during initialization of MiNT. The SLB wrapper code could then read the copy of the TOS-header pointer in user mode, and access the variable it points to - no need to switch to supervisor mode. Another, even simpler, method would be to let the scheduler save the address of the current basepage directly to a variable accessible by the SLB wrapper code. Ciao Thomas -- Thomas Binder (Gryf @ IRCNet) gryf@hrzpub.tu-darmstadt.de PGP-key available on request! binder@rbg.informatik.tu-darmstadt.de Vote against SPAM: http://www.politik-digital.de/spam/
Attachment:
pgpIU3x11Vf4v.pgp
Description: PGP signature