x86/entry/common: Provide idtentry_enter/exit()

Provide functions which handle the low level entry and exit similar to
enter/exit from user mode.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Alexandre Chartre <alexandre.chartre@oracle.com>
Acked-by: Peter Zijlstra <peterz@infradead.org>
Acked-by: Andy Lutomirski <luto@kernel.org>
Link: https://lkml.kernel.org/r/20200505134904.457578656@linutronix.de
This commit is contained in:
Thomas Gleixner
2020-03-26 16:28:52 +01:00
parent 53aaf262c6
commit 0ba50e861a
2 changed files with 102 additions and 0 deletions

View File

@@ -7,6 +7,9 @@
#ifndef __ASSEMBLY__
void idtentry_enter(struct pt_regs *regs);
void idtentry_exit(struct pt_regs *regs);
/**
* DECLARE_IDTENTRY - Declare functions for simple IDT entry points
* No error code pushed by hardware