* Disabling lwc0 instruction
@ 2004-11-09 13:01 ` mansoor
0 siblings, 0 replies; 3+ messages in thread
From: mansoor @ 2004-11-09 13:01 UTC (permalink / raw)
To: linux-mips
Hi all,
Iam working on lx4189. This core doesnt support
"lwc0" instruction but my tool chain generates
this instruction.
So when I run some applications it throws
"unknown instruction" exception.
How can solve this issue ?
I have few solutions but I dont know
whether its correct.
1) Re-build the toolchain with this instruction
disbaled. But how to do this ?.
2) Write an exception handler to handle this
instruction. The exact replacement would be
"mfc0". how to do this ?
Thanx in advance
Mansoor Ahamed Basheer
^ permalink raw reply [flat|nested] 3+ messages in thread* Disabling lwc0 instruction
@ 2004-11-09 13:01 ` mansoor
0 siblings, 0 replies; 3+ messages in thread
From: mansoor @ 2004-11-09 13:01 UTC (permalink / raw)
To: linux-mips
Hi all,
Iam working on lx4189. This core doesnt support
"lwc0" instruction but my tool chain generates
this instruction.
So when I run some applications it throws
"unknown instruction" exception.
How can solve this issue ?
I have few solutions but I dont know
whether its correct.
1) Re-build the toolchain with this instruction
disbaled. But how to do this ?.
2) Write an exception handler to handle this
instruction. The exact replacement would be
"mfc0". how to do this ?
Thanx in advance
Mansoor Ahamed Basheer
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: Disabling lwc0 instruction
2004-11-09 13:01 ` mansoor
(?)
@ 2004-11-09 13:24 ` Ralf Baechle
-1 siblings, 0 replies; 3+ messages in thread
From: Ralf Baechle @ 2004-11-09 13:24 UTC (permalink / raw)
To: mansoor; +Cc: linux-mips
On Tue, Nov 09, 2004 at 06:31:11PM +0530, mansoor wrote:
> Iam working on lx4189. This core doesnt support
> "lwc0" instruction but my tool chain generates
> this instruction.
>
> So when I run some applications it throws
> "unknown instruction" exception.
>
> How can solve this issue ?
>
> I have few solutions but I dont know
> whether its correct.
>
>
> 1) Re-build the toolchain with this instruction
> disbaled. But how to do this ?.
> 2) Write an exception handler to handle this
> instruction. The exact replacement would be
> "mfc0". how to do this ?
No. lwc0 is ll, load linked. In 2.6 define cpu_has_llsc to return 0 in
your system's cpu-feature-override.h. In 2.4 disable CONFIG_CPU_HAS_LLSC.
The kernel actually has an emulation for ll/sc in applications which
enables running of application code using ll/sc on ll/sc-less processors.
You should try to find why this seems to fail for you. Maybe this Lexra
kernel is simply super-ancient? If it's as old as it seems you should
replace it as it has various exploitable security holes.
Ralf
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-11-09 13:24 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-11-09 13:01 Disabling lwc0 instruction mansoor
2004-11-09 13:01 ` mansoor
2004-11-09 13:24 ` Ralf Baechle
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.