lkml.org 
[lkml]   [1998]   [Jan]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subjecttask_struct offsets broken in 2.1.77
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

\
 
 \ /
  Last update: 2005-03-22 13:41    [W:0.069 / U:0.168 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site