lkml.org 
[lkml]   [2020]   [May]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [patch V4 part 3 09/29] x86/entry/32: Provide macro to emit IDT entry stubs
----- On May 5, 2020, at 9:44 AM, Thomas Gleixner tglx@linutronix.de wrote:

[...]

> +.macro idtentry vector asmsym cfunc has_error_code:req sane=0
> +SYM_CODE_START(\asmsym)
> + ASM_CLAC
> + cld

Looking at the various interrupt and trap entry points for 32 and 64-bit
x86, I notice a lack of consistency in use of the following instruction
sequence at the asm entry point:

- ASM_CLAC,
- cld (clear direction flag).

Are they always needed, or only for interrupt handlers ?

Thanks,

Mathieu

--
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com

\
 
 \ /
  Last update: 2020-05-14 03:45    [W:0.476 / U:1.500 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site