OSDN Git Service

x86/ioperm: Move iobitmap data into a struct
authorThomas Gleixner <tglx@linutronix.de>
Mon, 11 Nov 2019 22:03:21 +0000 (23:03 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Sat, 16 Nov 2019 10:24:02 +0000 (11:24 +0100)
commit577d5cd7e5851d3832066cd0422475fa7db2ee17
tree1de44238f0b2b0db2cb4778fc374f73cb8fe69f2
parentf5848e5fd2f813c3a8009a642dfbcf635287c199
x86/ioperm: Move iobitmap data into a struct

No point in having all the data in thread_struct, especially as upcoming
changes add more.

Make the bitmap in the new struct accessible as array of longs and as array
of characters via a union, so both the bitmap functions and the update
logic can avoid type casts.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/include/asm/io_bitmap.h [new file with mode: 0644]
arch/x86/include/asm/processor.h
arch/x86/kernel/ioport.c
arch/x86/kernel/process.c
arch/x86/kernel/ptrace.c