Re: task_struct offsets broken in 2.1.77

Linus Torvalds (torvalds@transmeta.com)
Mon, 5 Jan 1998 15:45:45 -0800 (PST)


On Mon, 5 Jan 1998, Steven N. Hirsch wrote:
>
> On Mon, 5 Jan 1998, Martin Mares wrote:
>
> > Hi,
> >
> > The changes in the task_struct introduced in 2.1.77 caused the offsets
> > to task_struct fields used in arch/i386/kernel/entry.S to be shifted one
> > longword, the whole thing worked only by some means of magic. The following
> > patch corrects these offsets, but wouldn't it be good to switch to
> > machine-generated offsets as Sparc people already do?
> >
> > Have a nice fortnight
>
> Perhaps this explains why 2.1.77 panics on my Alpha? 2.1.76 works fine.

Yes. I have this fixed in my tree, although not the same way as Martin (I
just moved the new "struct task_struct" entry down to where it belongs),
which automatically fixes all architectures.

Linus