[patch V3 22/44] x86/idt: Unify gate_struct handling for 32/64bit

2017-08-28 Thread Thomas Gleixner
The first 32bits of gate struct are the same for 32 and 64 bit. The 32bit version uses desc_struct and no designated data structure, so we need different accessors for 32 and 64 bit. Aside of that the macros which are necessary to build the 32bit gate descriptor are horrible to read. Unify the

[patch V3 22/44] x86/idt: Unify gate_struct handling for 32/64bit

2017-08-28 Thread Thomas Gleixner
The first 32bits of gate struct are the same for 32 and 64 bit. The 32bit version uses desc_struct and no designated data structure, so we need different accessors for 32 and 64 bit. Aside of that the macros which are necessary to build the 32bit gate descriptor are horrible to read. Unify the