lkml.org 
[lkml]   [1998]   [Nov]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [patch] entry.S asm improvement (removed some ugly jmp)
On Sat, 28 Nov 1998, Kurt Garloff wrote:

>Always pair CALL and RETURN
>---------------------------
>If CALLs and RETs are not paired, the return address stack gets out of
>synchronization, increasing the latency of returns and decreasing
>performance.
>
>
>Hope this helps.

OK, thanks.

But switch_to()/__switch_to() (include/asm-i386/system.h) uses an impair
number of call/ret. Why? Am I missing something (maybe because it' s too
late ;).

Andrea Arcangeli


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

\
 
 \ /
  Last update: 2005-03-22 13:45    [W:0.862 / U:0.032 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site