[parisc-linux] Progress - Update

Philipp Rumpf Philipp.H.Rumpf@mathe.stud.uni-erlangen.de
Thu, 25 Nov 1999 14:24:33 +0100

> > Anybody know where or how the pointer "current" is defined?  It is not 
> > in the map.  I think it is supposed to point current processes task_struct.


static inline struct task_struct * get_current(void)
        struct task_struct *current;

        asm("copy 30,%0" : "=r" (current));
        return (struct task_struct *)((long) current & (~8191));
#define current get_current()

> current is a macro getting the task struct by manipulating %esp

GR30 in our case.

	Philipp Rumpf