> >Does anyonw want to comment? Did I miss the part of the
> >code that preloads %ar4?
>
> Well, ar4 is loaded together with the rest of the access
> registers right at the end of head.S, immediately before
> calling start_kernel:
>
>         lam    0,15,.Laregs-.LPG2(%r13) # load access regs needed by uaccess
>         brasl  %r14,start_kernel        # go to C code
> [snip]
> .Laregs:    .long  0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0

Argh, I grepped for %a.

> Unless Martin remembers the reason for this, I'd assume
> simply bit-rot.  (B.t.w. it's the same on s390.  Why does
> it work there?)

Big question. I do not remember if I actually tried on s390.
We did not use initrd before on s390, and that's the only
place that bombs.

Also, I think original code had USER_DS in INIT_TASK and
Harald changed that.

-- Pete

Reply via email to