linux-mips-fnet
[Top] [All Lists]

Re: Help! got stuck on the DS2100/3100

To: linux-mips@fnet.fr
Subject: Re: Help! got stuck on the DS2100/3100
From: Frieder Streffer <frist@lehr.chem.tu-berlin.de>
Date: Sat, 30 Aug 1997 23:16:16 +0200 (MET DST)
In-reply-to: <199708300338.FAA04860@informatik.uni-koblenz.de>
Hi Ralf,
I just put in two nop instructions, so I donst send you a full patch!
The file is include/asm/stackframe.h of the 2.1.14 kernel

was:
#define SAVE_ALL
                mfc0 k0, CP0_STATUS; \
                sll  k0, 3; \

now is:
#define SAVE_ALL
                mfc0 k0, CP0_STATUS; \
                nop; \
                sll  k0, 3; \

was:
#define RESTORE_ALL
                mfc0 t0, CP0_STATUS; \
                ori  t0, 0x1f; \

now is:
#define RESTORE_ALL
                mfc0 t0, CP0_STATUS; \
                nop; \
                ori  t0, 0x1f; \

A little bit simplistic, and there is surely a better solution but this 
has done the job on my machines.
Thanks for your hint with elf2ecoff, i will give it a try.

Frieder

<Prev in Thread] Current Thread [Next in Thread>