lkml.org 
[lkml]   [2014]   [May]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC/HACK] x86: Fast return to kernel
On 05/02/2014 02:42 PM, Andy Lutomirski wrote:
>
> Hah -- I think I just faked both of you out :)
>
> I don't think this has anything to do with the error code, and I think
> that the errorentry code already does more or less that: it pushes -1.
>
> The real issue here is probably the magic 16-byte stack alignment when
> a non-stack-switching interrupt happens.
>

Errorentry is when there *is* an error code pushed by the hardware. The
other variant is zeroentry, which does generate a zero error code --
eventually. The -1 means we didn't enter the kernel through a system call.

-hpa



\
 
 \ /
  Last update: 2014-05-03 00:01    [W:0.032 / U:1.376 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site