x86: introduce fill_ldt
This patch introduces fill_ldt(), which populates a ldt descriptor from a user_desc in once, instead of relying in the LDT_entry_a and LDT_entry_b macros Signed-off-by:Glauber de Oliveira Costa <gcosta@redhat.com> Signed-off-by:
Ingo Molnar <mingo@elte.hu> Signed-off-by:
Thomas Gleixner <tglx@linutronix.de>
Showing
- arch/x86/kernel/ldt.c 1 addition, 2 deletionsarch/x86/kernel/ldt.c
- arch/x86/kernel/process_64.c 1 addition, 2 deletionsarch/x86/kernel/process_64.c
- arch/x86/kernel/tls.c 3 additions, 4 deletionsarch/x86/kernel/tls.c
- include/asm-x86/desc.h 29 additions, 0 deletionsinclude/asm-x86/desc.h
- include/asm-x86/desc_32.h 0 additions, 15 deletionsinclude/asm-x86/desc_32.h
- include/asm-x86/desc_64.h 0 additions, 17 deletionsinclude/asm-x86/desc_64.h
Loading
Please register or sign in to comment