Still working on OS/2 PPC edition bootloading. I got patch to
ppc_prep.c from J Mayer to make it support non-continuous I/O map
mode. It seemed to work ok. But catched bug in the further code after
line mfspr r3,1008. I modified ppc_prep.c Processor version from
0x00080000 (g3) to 0x00040000 (604) and problem was fixed. Now it
crashes after code:
subfic r0,r0,-32690
mtlr r0
blr
(LR = ffef7f1e)
r0 was 0x00100130 to begin with
This error happens shortly after changinfg MSR state from 0x00000030
to 0x00000031 (change mode from Big-endian to Little endian) So might
Little-endian be reason why LR goes nuts?:)