Re: task_struct offsets broken in 2.1.77

Linus Torvalds (torvalds@transmeta.com)
Mon, 5 Jan 1998 17:54:57 -0800 (PST)


On Tue, 6 Jan 1998, MOLNAR Ingo wrote:
>
> it was put there on purpose in the original patch (which you greatly
> improved, leaving almost nothing untouched, except that big fat bug ;), my
> thinking was that we access the first cacheline of the task struct when we
> enter the system, and this is the time when access checks are done as
> well, so the cacheline will be hot. Is there any other ordering logic
> behind that stuff? Also, as debug[8] is exactly 1 cacheline, we could
> align it on cacheline as well, it gets active only at context switch time,
> a few orders less used than the system entry code.

There's low-level assembly that depends on the ordering, in various
architectures.

Linus