task_struct offsets broken in 2.1.77

Martin Mares (mj@ucw.cz)
Mon, 5 Jan 1998 22:04:56 +0100


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

-- 
Martin `MJ' Mares   <mj@gts.cz>   http://atrey.karlin.mff.cuni.cz/~mj/
Faculty of Math and Physics, Charles University, Prague, Czech Rep., Earth
"Ctrl and Alt keys stuck -- press Del to continue."

--- arch/i386/kernel/entry.S.mj Mon Jan 5 21:52:31 1998 +++ arch/i386/kernel/entry.S Mon Jan 5 21:54:41 1998 @@ -74,10 +74,10 @@ counter = 4 priority = 8 flags = 12 -sigpending = 16 -dbgreg6 = 44 -dbgreg7 = 48 -exec_domain = 52 +sigpending = 20 +dbgreg6 = 48 +dbgreg7 = 52 +exec_domain = 56 ENOSYS = 38