x86/entry: Introduce local_db_{save,restore}()

In order to allow other exceptions than #DB to disable breakpoints,
provide common helpers.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lkml.kernel.org/r/20200529213321.012060983@infradead.org
This commit is contained in:
Peter Zijlstra 2020-05-29 23:27:33 +02:00 • committed by Thomas Gleixner
commit e1de11d4d1
2 changed files with 32 additions and 16 deletions