Re: [PATCH] arch/tile: new multi-core architecture for Linux

From: Chris Metcalf
Date: Fri May 28 2010 - 13:58:35 EST


On 5/27/2010 10:52 AM, Marc Gauthier wrote:
>>> We use [a syscall] not for the floating-point operations, but for integer
>>> divide-by-zero. In principle we could use it for floating-point too,
>>> but we currently don't, since generally folks don't expect it there.
>>>
>> Ah, I see. That probably makes a lot of sense to present as a signal
>> the way you do.
>>
> FWIW, this can also be done using some recognizable illegal
> instruction sequence, if the architecture reserves some opcodes
> as always illegal.

We do reserve a range of illegal values, and this is a great idea. I've
removed the syscall from our kernel, and will add support for the
appropriate magic in the trap handler once we pick an encoding and give
it a name in the assembler.

--
Chris Metcalf, Tilera Corp.
http://www.tilera.com


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/