On Mon, Mar 9, 2015 at 12:46 PM, Ingo Molnar <mi...@kernel.org> wrote:
>
> * Andy Lutomirski <l...@amacapital.net> wrote:
>
>> >>      */
>> >>     unsigned long        stack[64];
>> >>
>> >> Last I checked, 0x100 != 64.  Also, wow, this is kind of disgusting. :)
>> >
>> >
>> > Seems to be unused: I commented it out on "defconfig" build
>> > and got no build errors.
>>
>> It's used.  On 32-bit, NMIs don't use task gates (I don't know why),
>
> So task gates were a sexy hardware acceleration feature, eons ago, and
> we used to rely on them a lot,

IIRC task gates weren't used in Linux at first, and now they are
only used for double fault handler - because in many cases
double fault is caused by stack problems, and task gate provides
a way to have alternative stack even for exceptions happening
in CPL0.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to